1
以上がありますように私はこのコードで間違っているかを把握することができない属性が必要:はすぐに一つの要素
<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>
私は、すぐに複数のtiles
要素があるとしてkey
属性を必要とします:
<!-- 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>
私は間違っていますか?
非常に明確な説明。どうもありがとう! –