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

Re: Unordered content model in XSDL

From: Eric van der Vlist <vdv@dyomedea.com>
Date: Fri, 12 Jan 2001 17:37:15 +0100
Message-ID: <3A5F32BB.5DAB4B28@dyomedea.com>
To: Ian Stokes-Rees <ian@decisionsoft.com>
CC: xmlschema-dev@w3.org


Ian Stokes-Rees wrote:
> 
> I cannot seem to work out how you would create a schema that allowed any
> number of elements A, B, C, or D inside an element sample.  e.g.:

In this specific case, you can write:

<element name="sample">
  <complexType>
    <choice minOccurs="0" maxOccurs="unbounded">
      <element name="A" />
      <element name="B" />
      <element name="C" />
      <element name="D" />
    </choice>
  </complexType>
</element>

and this will do the trick.

Eric

> Ian.
> --
> ian.stokes-rees@decisionsoft.com          tel: +1865 203 192
> DecisionSoft Ltd.                         fax: +1865 203 194
> www.decisionsoft.com                      Oxford, UK, OX2 OEA

-- 
------------------------------------------------------------------------
Eric van der Vlist       Dyomedea                    http://dyomedea.com
http://xmlfr.org         http://4xt.org              http://ducotede.com
------------------------------------------------------------------------
Received on Friday, 12 January 2001 11:54:25 GMT

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