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>
我想需要一个key
只要有一个以上的tiles
元素属性:
<!-- 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>
我在做什么错?
非常明确的解释。非常感谢! – 2012-04-15 16:40:49