atrybut Mam następujące XML:XSD - Ograniczanie wartości atrybutów do innego elementu wartość
<Content name="contentName1">
<!-- Some sub elements here -->
</Content>
<Sequence Name="sequenceName1">
<Content name="contentName1" />
<!-- Some sub elements here -->
</Sequence>
z następującym XSD
<xs:element maxOccurs="unbounded" name="Content">
<xs:complexType>
<xs:attribute name="Name" type="xs:string" use="required" />
<!-- other definitions here -->
</xs:complexType>
</xs:element>
<xs:element maxOccurs="unbounded" name="Sequence">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" name="Content">
<xs:complexType>
<xs:attribute name="ContentName" type="xs:string" use="required" />
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="Name" type="xs:string" use="required" />
</xs:complexType>
</xs:element>
W XSD, jak mogę powiedzieć do atrybutu ContentName z Elementy zawartości Sekwencji akceptują tylko wartości zadeklarowane w elementach ContentName of Content?
np .: z powyższym XML, tylko ContentName1 zostanie zaakceptowany w Treści sekwencji.