Как в xsd указать, что может быть большая вложенность одного и того же элемента category ? Вот кусок xml :
| Код | <category name="baseball" > <category name="men" reference="Sport"> <category name="usa"/> <category name="europe"/> <category name="asia"/> </category> </category>
|
как это написать в xsd ? Делаю так, но это не верно
| Код | <xsd:element name="category" minOccurs="0" maxOccurs="unbounded"> <xsd:complexType> <xsd:attribute name="name" type="xsd:string" use="required" /> <xsd:attribute name="reference" type="xsd:string" use="optional" /> </xsd:complexType> </xsd:element>
|
Вопрос в том, как показать xsd что category может быть много раз быть вложенным 1, 5, 10, 100, .... ? |