L
Luigi
Hello!
I'm writing a schema where an element has got a reference to another
element via IDREF. The problem is that I would restrict the possible
references to the sole elements of a specific type, or, in other
words, to those element with a specific tag name. For instance:
<xs:element name="A">
<xs:complexType>
<xs:attribute name="id" type="xs:ID"/>
</xs:complexType>
</xs:element>
<xs:element name="B">
<xs:complexType>
<xs:attribute name="id" type="xs:ID"/>
</xs:complexType>
</xs:element>
<xs:element name="C">
<xs:complexType>
<xs:attribute name="idref" type="xs:IDREF"/>
</xs:complexType>
</xs:element>
I want that C elements could have references only to A elements. Is it
possible?
Thank you in advance.
I'm writing a schema where an element has got a reference to another
element via IDREF. The problem is that I would restrict the possible
references to the sole elements of a specific type, or, in other
words, to those element with a specific tag name. For instance:
<xs:element name="A">
<xs:complexType>
<xs:attribute name="id" type="xs:ID"/>
</xs:complexType>
</xs:element>
<xs:element name="B">
<xs:complexType>
<xs:attribute name="id" type="xs:ID"/>
</xs:complexType>
</xs:element>
<xs:element name="C">
<xs:complexType>
<xs:attribute name="idref" type="xs:IDREF"/>
</xs:complexType>
</xs:element>
I want that C elements could have references only to A elements. Is it
possible?
Thank you in advance.