Cross-referencing namespaces & schemas [message #634816] |
Sat, 23 October 2010 19:19  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.10309 seconds