Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 349163 - XSD having duplicate data type shows improper message.
Summary: XSD having duplicate data type shows improper message.
Status: RESOLVED INVALID
Alias: None
Product: EMF
Classification: Modeling
Component: XSD (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Ed Merks CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-13 02:41 EDT by Vishal CLA
Modified: 2023-01-12 11:53 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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...