Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » Cross-referencing namespaces & schemas
Cross-referencing namespaces & schemas [message #634816] Sat, 23 October 2010 23:19 Go to next message
No real name is currently offline No real nameFriend
Messages: 1
Registered: October 2010
Junior Member
Hi

I have 2 XSDs, each describing their own namespace.
I'd like to use elements from both XSDs in the other XSD, and so I import the other namespace in each file.
However, the XSD no longer validate properly - I'm getting 'sch-props-correct.2: A schema cannot contain two global components with the same name; this schema contains two occurrences of...'
The XSDs seem perfectly valid, and xjc happily generates usable code, so I'd be interested to know why validation doesn't handle this case, and how to address that.
Any tips or clues?

Thanks

Frederik

Re: Cross-referencing namespaces & schemas [message #634818 is a reply to message #634816] Sun, 24 October 2010 00:09 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
Frederik,

Comments below.


fle@alkasa.be wrote:
> Hi
>
> I have 2 XSDs, each describing their own namespace.
> I'd like to use elements from both XSDs in the other XSD, and so I
> import the other namespace in each file.
What doe the imports look like?
> However, the XSD no longer validate properly - I'm getting
> 'sch-props-correct.2: A schema cannot contain two global components
> with the same name; this schema contains two occurrences of...'
> The XSDs seem perfectly valid, and xjc
What's that?
> happily generates usable code, so I'd be interested to know why
> validation doesn't handle this case, and how to address that.
It's kind of hard to answer without being able to reproduce the problem.
> Any tips or clues?
The error message you describe looks more like one generated by Xerces...
>
> Thanks
>
> Frederik
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Querying parents of element declarations
Next Topic:Ant Problem - failed to create task or type project
Goto Forum:
  


Current Time: Fri Apr 26 16:27:23 GMT 2024

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

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

Back to the top