[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Ignore Order while validating XSD

From: Eduardo Oliveira <eduardo.oliveirared@gmail.com>
Date: Sat, 24 Jan 2009 17:51:58 -0200
Message-ID: <f7c898bc0901241151v150588c0h55bed45ea56ebc9b@mail.gmail.com>
To: xmlschema-dev@w3.org
Re: Ignore Order while validating XSD
There´s much time since the last message, but I have a problem with the
given solution.
Since I use the model below, I can´t force the element to be declared, or in
other words, the minOccurs does not run.

The piece of code given from "George Cristian Bina":

  <xs:complexType>
    <xs:choice maxOccurs="unbounded">
      <xs:element name="a"/>
      <xs:element name="b"/>
      <xs:element name="c"/>
      <xs:element name="x"/>
    </xs:choice>
  </xs:complexType>

Suppose I wish the  <xs:element name="a"/> to always be received, so I
change the code to the code below, but the minOccurs does not run.

  <xs:complexType>
    <xs:choice maxOccurs="unbounded">
*      <xs:element name="a" minOccurs="1"/>*
      <xs:element name="b"/>
      <xs:element name="c"/>
      <xs:element name="x"/>
    </xs:choice>
  </xs:complexType>

Does anyone has an idea how can I solve this?

Thanks a lot!

Dervillo
Received on Saturday, 24 January 2009 20:34:42 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.