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.
|