Control element cardinality based on an attribute enumeration in XSD?
问题 I want the character element to be repeatable if the cell @type is filled , numbered , specialNumbered , or specialUnnumbered . I want the character element NOT to be repeatable if the cell @type is multiCharacterNumbered or multiCharacterUnnumbered . If the cell type is blank , I'd like to disallow the character element altogether. Does this require XSD 1.1? How do I form the conditional or test? <xs:element name="cell" maxOccurs="unbounded"> <xs:complexType> <xs:sequence> <xs:element name=