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

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

From: Martin Gudgin <marting@develop.com>
Date: Wed, 10 Jan 2001 18:28:55 -0000
Message-ID: <004c01c07b33$34987890$0200a8c0@develop.com>
To: "Henry S. Thompson" <ht@cogsci.ed.ac.uk>, "Morris Matsa" <mmatsa@us.ibm.com>
Cc: "Badt" <estee@isdn.net.il>, <xmlschema-dev@w3.org>
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 GMT

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