LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   XML Schema element references (https://www.linuxquestions.org/questions/programming-9/xml-schema-element-references-486058/)

Omni 09-22-2006 02:07 PM

XML Schema element references
 
I have two schemas that define an element X, each has their own namespace. A third imports the schemaLocation and namespace of the first two. This 'Third' references element X from the first file "<element ref="One:X"/>". 'One' is the prefix to the targetNamespace of the first file.

The fourth schema imports the third, and has an element reference as such: "<element ref="Third:X"/>", since X is referenced in the third file from the first.

Unfortunatly, I get "Third.xsd - Message: Element must have a name or a ref attribute - element ignored".

So how do I go about referencing an element up the 'import' chain?

Beleive me, I know this is complicated as hell, I don't like it either, but there is a lot going on in these files beyond this. I'm not confident I can solve this problem on my own like I did that one this morning.


All times are GMT -5. The time now is 02:10 PM.