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"/>

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

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

Kind regards,
Received on Thursday, 10 January 2002 10:49:42 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:54 UTC