Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » Duplicate name/target namespace error
Duplicate name/target namespace error [message #49345] Thu, 22 July 2004 20:06 Go to next message
Dennis Fuglsang is currently offline Dennis FuglsangFriend
Messages: 77
Registered: July 2009
Member
Ed,

We have an issue related to schema imports and includes that we need some
help with. We have a situation in which there are 3 xsd files. Schema A
imports both Schema B and C. Schema B imports Schema C. These XSDs
validate fine in XML Spy and Schema Quality Checker. However, the XSD
validation in Eclipse is complaining. I've attached sample schemas.

Import Structure:
Main ---imports---> Employee, Security
Employee ---imports---> Security

Here is the error message: XSD: The type may not have duplicate name and
target namespace 'http://www.acme/schema/Security#securityType' Main.xsd.

I suspect the Schema import/include logic in the metamodel is adding the
Security schema to Main via direct import and as a result of importing
Employee.

Is this a known issue? Has a fix been issued for this problem?

Thanks in advance,

Dennis Fuglsang




  • Attachment: Security.xsd
    (Size: 0.52KB, Downloaded 311 times)
  • Attachment: Employee.xsd
    (Size: 1.05KB, Downloaded 310 times)
  • Attachment: Main.xsd
    (Size: 1.05KB, Downloaded 396 times)
Re: Duplicate name/target namespace error [message #49437 is a reply to message #49345] Mon, 26 July 2004 12:35 Go to previous message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Dennis,

I've not been able to reproduce this.


Dennis Fuglsang wrote:

>Ed,
>
>We have an issue related to schema imports and includes that we need some
>help with. We have a situation in which there are 3 xsd files. Schema A
>imports both Schema B and C. Schema B imports Schema C. These XSDs
>validate fine in XML Spy and Schema Quality Checker. However, the XSD
>validation in Eclipse is complaining. I've attached sample schemas.
>
>Import Structure:
> Main ---imports---> Employee, Security
> Employee ---imports---> Security
>
>Here is the error message: XSD: The type may not have duplicate name and
>target namespace 'http://www.acme/schema/Security#securityType' Main.xsd.
>
>I suspect the Schema import/include logic in the metamodel is adding the
>Security schema to Main via direct import and as a result of importing
>Employee.
>
>Is this a known issue? Has a fix been issued for this problem?
>
>Thanks in advance,
>
>Dennis Fuglsang
>
>
>
>
Re: Duplicate name/target namespace error [message #589872 is a reply to message #49345] Mon, 26 July 2004 12:35 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Dennis,

I've not been able to reproduce this.


Dennis Fuglsang wrote:

>Ed,
>
>We have an issue related to schema imports and includes that we need some
>help with. We have a situation in which there are 3 xsd files. Schema A
>imports both Schema B and C. Schema B imports Schema C. These XSDs
>validate fine in XML Spy and Schema Quality Checker. However, the XSD
>validation in Eclipse is complaining. I've attached sample schemas.
>
>Import Structure:
> Main ---imports---> Employee, Security
> Employee ---imports---> Security
>
>Here is the error message: XSD: The type may not have duplicate name and
>target namespace 'http://www.acme/schema/Security#securityType' Main.xsd.
>
>I suspect the Schema import/include logic in the metamodel is adding the
>Security schema to Main via direct import and as a result of importing
>Employee.
>
>Is this a known issue? Has a fix been issued for this problem?
>
>Thanks in advance,
>
>Dennis Fuglsang
>
>
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Use xsd library in java applet
Next Topic:Idea for addressing the prerequisites problem - move EMF, GEF, and XSD to Platform
Goto Forum:
  


Current Time: Tue Apr 23 08:23:14 GMT 2024

Powered by FUDForum. Page generated in 0.03319 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top