Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » Cross-referencing namespaces & schemas
Cross-referencing namespaces & schemas [message #634816] Sat, 23 October 2010 19:19 Go to next message
No real name is currently offline No real name
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] Sat, 23 October 2010 20:09 Go to previous message
Ed Merks is currently offline Ed Merks
Messages: 25744
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
>
>
Previous Topic:Querying parents of element declarations
Next Topic:Ant Problem - failed to create task or type project
Goto Forum:
  


Current Time: Fri Apr 18 01:38:34 EDT 2014

Powered by FUDForum. Page generated in 0.02381 seconds