ich kann nicht herausfinden, was mit diesem Code falsch:sobald Attribut wie es mehr als ein Element
<xs:choice>
<xs:element name="tiles" type="tiles" minOccurs="1" maxOccurs="1"/>
<xs:element name="tiles" type="tiles-with-key" minOccurs="2" maxOccurs="unbounded"/>
</xs:choice>
Ich möchte so schnell ein key
Attribut erfordern, da es mehr als ein tiles
Element ist:
<!-- one element, no need for the "key" attribute -->
<tiles>
...
</tiles>
<!-- two elements, we need the "key" to differentiate them -->
<tiles key="1">
...
</tiles>
<tiles key="2">
...
</tiles>
Was mache ich falsch?
Sehr klare Erklärung. Danke vielmals! –