W3C home > Mailing lists > Public > xmlschema-dev@w3.org > January 2005

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

 > 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

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:49 GMT