Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 349163

Summary: XSD having duplicate data type shows improper message.
Product: [Modeling] EMF Reporter: Vishal <vsaraogi>
Component: XSDAssignee: Ed Merks <Ed.Merks>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Vishal CLA 2011-06-13 02:41:14 EDT
Build Identifier: M20100211-1343

Hi,

When I am trying to use a XSD file to get the schema content and when i read the type definition present in the file.Then if the XSD file has two types having same name and namespace then it gives a diagnostic report coming from "XSDDiagnosticImpl" and the message it gives has a grammatical mistake as it show 
"XSD: The type may not have duplicate name and target namespace 'http://test.com#Amount'

"may" keyword in the message represents that the xsd file may have two duplicate type definition and not sure about the duplication.So,Why do we need "may" keyword when we do have two duplicate type definition.

Reproducible: Always
Comment 1 Ed Merks CLA 2011-06-14 08:28:58 EDT
The term "may not" means "you're not allowed".  There's nothing grammatically incorrect about that...