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

Adding an attribute to a restricted simple type

From: Maikel Jansen <maikel.jansen@asml.com>
Date: Thu, 10 Jan 2002 10:31:06 -0500 (EST)
Message-ID: <3C3DB3A8.6C0F0AD9@asml.nl>
To: xmlschema-dev@w3.org
Dear XML Schema Users,

Assume the following XML Schema Syntax

<simpleType name="type0">
  <restriction base="string">
    <enumeration value="my value"/>
  </restriction>
</simpleType>

<element name="x">
  <complexType>
    <simpleContent>
      <extension base="type0">
        <attribute name="my_attribute" type="string"/>
      </extension>
    </simpleContent>
  </complexType>
</element>

My Question: is this allowed, i.e., extension and restriction
are (indirectly) combined?

Kind regards,
Maikel.
Received on Thursday, 10 January 2002 10:49:42 GMT

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