1

Topic: xsd choice sequence

Whether it is possible on XSD to describe such rules
1) there are elements a, b, c
2) if the element with misses, elements and, b are mandatory
3) if the element with is present, and an element and misses, instead of b it is necessary to interpose an element d
4) the element b goes strictly for a, and d, for with
Examples  documents

<a/>
<b/>
<a/>
<b/>
<c/>
<c/>
<d/>

If it simplifies the task the element c can be declared before and

<c/>
<a/>
<b/>

Yours faithfully, Vasilisk

2

Re: xsd choice sequence

Strange, here so

<xsd:choice>
<xsd:sequence>
<xsd:element name = "c"/>
<xsd:element name = "d"/>
</xsd:sequence>
<xsd:sequence>
<xsd:element name = "a"/>
<xsd:element name = "b"/>
<xsd:element name = "c" minOccurs = "0"/>
</xsd:sequence>
</xsd:choice>

earned. And I thought that there will be a conflict of determinations of an element with