Re: [Moderator Action] How can I use the schema to declare an "open" model?

Yes, he does...

Gudge

----- Original Message -----
From: "Morris Matsa" <mmatsa@us.ibm.com>
To: "Henry S. Thompson" <ht@cogsci.ed.ac.uk>
Cc: "Badt" <estee@isdn.net.il>; <xmlschema-dev@w3.org>
Sent: Wednesday, January 10, 2001 6:09 PM
Subject: Re: [Moderator Action] How can I use the schema to declare an
"open" model?


>
>
> Henry, do you mean <any> instead of <all>?
>
<SNIP>
> That model will work if you change it to a sequence, so you have two
> alternatives as things stand:
>
>  <xs:sequence>
>   <xs:element name='type'/>
>   <xs:element name='price'/>
>   <xs:all minOccurs='0' maxOccurs='unbounded'/>
>  <xs:sequence/>
>
>  <xs:choice minOccurs='0' maxOccurs='unbounded'/>
>   <xs:element name='type'/>
>   <xs:element name='price'/>
>   <xs:all namespace='##other'/>
>  </xs:choice>
>
> The first allows your elements all to share a namespace, but requires
> fixed order.
>
> The second allows any ordering, doesn't require the <type> and <price>
> elements, and requires the extra elements to be in a separate
> namespace.
>
> ht
> --
>   Henry S. Thompson, HCRC Language Technology Group, University of
> Edinburgh
>           W3C Fellow 1999--2001, part-time member of W3C Team
>      2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
>          Fax: (44) 131 650-4587, e-mail: ht@cogsci.ed.ac.uk
>                URL: http://www.ltg.ed.ac.uk/~ht/
>
>

Received on Wednesday, 10 January 2001 13:29:52 UTC