Skip to main content



      Home
Home » Archived » XML Schema Definition (XSD) » Cross-referencing namespaces & schemas
Cross-referencing namespaces & schemas [message #634816] Sat, 23 October 2010 19:19 Go to next message
Eclipse UserFriend
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
Eclipse UserFriend
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 Jul 04 10:11:35 EDT 2025

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

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

Back to the top