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

Re: am I understanding this correctly?

From: Jeff Sonstein <jeffs@ariadne.iz.net>
Date: Sat, 29 Jan 2005 08:46:36 -0500 (EST)
To: lists@jeffrafter.com
Cc: xmlschema-dev@w3.org
Message-Id: <1107006396.69613@ariadne.iz.net>

Jeff Rafter wrote ..

>  > 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.

hi Jeff...

would this formulation allow me to have
for example
more than one Anchor 
in the same groupingAndChildrenNodes??

thanks for the help
jeffs

--
Jeff Sonstein
Assistant Professor
Department of Information Technology
Rochester Institute of Technology
--------------------------------------------
[RIT]            http://www.it.rit.edu/~jxs/
[Personal]     http://ariadne.iz.net/~jeffs/
[PGP] http://ariadne.iz.net/~jeffs/jeffs.asc
[Project]                  http://xvrml.net/
--------------------------------------------
There are no bugs
there are just undocumented features
Received on Saturday, 29 January 2005 13:30:24 GMT

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