Repeating elements in a sequence.
XML / XSL
1
Posts
1
Posters
2
Views
1
Watching
-
I want some child elements in an element to repeat. But I also don't care what order. I cant use the "all" compositor because the maxOccurance can only be 1. Here's what I have tried but I still don't have the result I want. The way I thought this should work is "line" and "field" should repeat as many times as needed.
<xsd:element name="group">
xsd:complexType
xsd:sequence
<xsd:element name="name" minOccurs = "1" maxOccurs ="1"/><xsd:choice minOccurs = "0" maxOccurs = "unbounded"> <xsd:element ref="line" minOccurs = "0" maxOccurs = "unbounded"/> <xsd:element ref="field" minOccurs = "0" maxOccurs = "unbounded"/> </xsd:choice> <xsd:element ref="TextFieldGroup" minOccurs = "0" maxOccurs = "unbounded"/> </xsd:sequence> <xsd:attribute name="groupType" use = "optional"/> </xsd:complexType> </xsd:element>
Any ideas on what I can do? nay