Hi all,
I need to create an XSD schema that will reperesent the following:
<LIST>
<ITEM1/> 0-unbounded
<ITEM3/> 0-unbounded
</LIST>
or
<LIST>
<ITEM2/> 0-unbounded
<ITEM3/> 0-unbounded
</LIST>
The problem is that within the LIST item, the order of the elements
does not matter! I found that I can't use the all model with the
choice model as parent.
Other solutions I tried resulted in ambigouos definition of the ITEM3
element due to "Unique Particle Attribution rule".
This is the current unsatisfactory schema, since it contains sequence
which forces unwanted order:
<xs:complexTy pe name="ListType" >
<xs:sequence>
<xs:choice minOccurs="0">
<xs:element name="ITEM1" type="ITEM1Type " minOccurs="0"
maxOccurs="unbo unded"/>
<xs:element name="ITEM2" type="ITEM2Type " minOccurs="0"
maxOccurs="unbo unded"/>
</xs:choice>
<xs:element name="ITEM3" type="ITEM3Type " minOccurs="0"
maxOccurs="unbo unded"/>
</xs:complexType>
Any ideas?
Thanks in advance,
Gili Korman
ITG
I need to create an XSD schema that will reperesent the following:
<LIST>
<ITEM1/> 0-unbounded
<ITEM3/> 0-unbounded
</LIST>
or
<LIST>
<ITEM2/> 0-unbounded
<ITEM3/> 0-unbounded
</LIST>
The problem is that within the LIST item, the order of the elements
does not matter! I found that I can't use the all model with the
choice model as parent.
Other solutions I tried resulted in ambigouos definition of the ITEM3
element due to "Unique Particle Attribution rule".
This is the current unsatisfactory schema, since it contains sequence
which forces unwanted order:
<xs:complexTy pe name="ListType" >
<xs:sequence>
<xs:choice minOccurs="0">
<xs:element name="ITEM1" type="ITEM1Type " minOccurs="0"
maxOccurs="unbo unded"/>
<xs:element name="ITEM2" type="ITEM2Type " minOccurs="0"
maxOccurs="unbo unded"/>
</xs:choice>
<xs:element name="ITEM3" type="ITEM3Type " minOccurs="0"
maxOccurs="unbo unded"/>
</xs:complexType>
Any ideas?
Thanks in advance,
Gili Korman
ITG
Comment