Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - Re: "Re: xs:include changing targetNamespace"' >Thread Next - RE: How ensure group elements exist and in any order How ensure group elements exist and in any orderTo: <xmlschema-dev@--.---> Date: 10/6/2004 12:18:00 AM
Hi,
When a group of elements ("VINGroup") is present in my xslt file, I want =
to confirm that all members of the group are present but they may be in =
any order (sequence)...
Is there a way do this in the xsd?
This is what I have so far but it forces the VINGroup elements to be in =
a specific order...
thanks in advance,
gary...
<xsd:element name="Vehicle">
<xsd:complexType>
<xsd:sequence>
<xsd:choice minOccurs="1" maxOccurs="1">
<!-- Case #1: VIN & Body/Make/Model Group Supplied -->
<xsd:sequence>
<xsd:element ref="VehicleIdentificationNumber"/>
<xsd:group ref="VINGroup" minOccurs="1" maxOccurs="1"/>
</xsd:sequence>
<!-- Case #2: VIN Only Supplied -->
<xsd:sequence>
<xsd:element ref="VehicleIdentificationNumber" minOccurs="1"/>
</xsd:sequence>
<!-- Case #3: Body/Make/Model Group Only Supplied -->
<xsd:sequence>
<xsd:group ref="VINGroup" minOccurs="1" maxOccurs="1"/>
</xsd:sequence>
</xsd:choice>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:group name="VINGroup">
<xsd:sequence>
<xsd:element name="Body" type="xsd:string"/>
<xsd:element name="Make" type="xsd:string"/>
<xsd:element name="Model" type="xsd:string"/>
</xsd:sequence>
</xsd:group>
From mike@s... Wed Oct 06 15:00:07 2004
Received: from lisa.w3. | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
