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

Re: am I understanding this correctly?

From: Jeff Rafter <lists@jeffrafter.com>
Date: Fri, 28 Jan 2005 22:40:07 -0700
Message-ID: <41FB21B7.6090808@jeffrafter.com>
To: Jeff Sonstein <jeffs@it.rit.edu>
CC: xmlschema-dev@w3.org
Re: am I understanding this correctly?

 > do I understand this correctly?

Yes, but why not change it to:

    <xs:complexType name="groupingAndChildrenNodes">
      <xs:choice maxOccurs="unbounded" minOccurs="0">
        <xs:element ref="Anchor"/>
        <xs:element ref="Background"/>
        [...]
      </xs:choice>
    </xs:complexType>

In DTD, your existing model is ((Anchor | Background))* but with the 
above change it would be (Anchor | Background)* which has one less step 
of indirection.

Cheers,
Jeff Rafter
Received on Saturday, 29 January 2005 05:40:40 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.