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

xs:choice with a single choice

From: Florent Georges <darkman_spam@yahoo.fr>
Date: Wed, 14 Jun 2006 09:50:03 +0200 (CEST)
Message-ID: <20060614075004.25222.qmail@web25809.mail.ukl.yahoo.com>
To: xmlschema-dev@w3.org
xs choice

  Hi

  I just saw the following complex type definition in the
last XQTS (XQuery Test Suite 0.9.4) XQTSCatalog.xsd:

    <xs:complexType>
      <xs:choice maxOccurs="unbounded">
        <xs:element name="citation-spec" maxOccurs="unbounded">
          <xs:complexType>
            <xs:complexContent>
              <xs:extension base="test:infoBase">
                <xs:sequence>
                  <xs:element name="spec-URI" type="xs:anyURI"/>
                </xs:sequence>
                <xs:attribute name="name" use="required"
                              type="test:citation-spec-enum"/>
              </xs:extension>
            </xs:complexContent>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>

  I wonder if there is any reason to use a choice with a
single element.  Any idea?

  Regards,

--drkm


























__________________________________________________
Do You Yahoo!?
En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicités 
http://mail.yahoo.fr Yahoo! Mail 
Received on Wednesday, 14 June 2006 07:50:14 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.