W3C home > Mailing lists > Public > xmlschema-dev@w3.org > March 2002

Derivation by restriction from <any>

From: <Simon.Cox@csiro.au>
Date: Tue, 5 Mar 2002 15:39:58 +0800
Message-ID: <116D27C8E12BD411B3AB00B0D022B0B8AF0A7F@yate.wa.csiro.au>
To: xmlschema-dev@w3.org
Is it possible to derive by restriction starting with an <any>?

e.g.

<complexType name="basetype">
  <sequence>
    <any maxOccurs="unbounded"/>
  </sequence>
</complexType>

<complexType name="newtype">
  <complexContent>
    <restriction base="my:basetype">
      <sequence>
        <element name="e1" type="string"/>
        <element name="e2" type="integer" minOccurs="0"/>
        <element name="e3" type="date" minOccurs="0"/>
      </sequence>    
    </restriction>
  </complexContent>
</complexType>

_____
Simon.Cox@csiro.au  CSIRO Exploration & Mining
26 Dick Perry Avenue, Kensington WA 6151
PO Box 1130, Bentley WA 6102  AUSTRALIA
T: +61 (8) 6436 8639  F: +61 (8) 6436 8555  C: +61 (4) 0330 2672
http://www.csiro.au/page.asp?type=resume&id=CoxSimon
 
Received on Tuesday, 5 March 2002 02:48:46 GMT

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