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"/>

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.

Jeff Rafter
Received on Saturday, 29 January 2005 05:40:40 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:56:07 UTC