W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > October to December 2001

<restriction> is not actually a restriction

From: Kohsuke KAWAGUCHI <kohsuke.kawaguchi@sun.com>
Date: Mon, 19 Nov 2001 08:46:11 -0800
To: www-xml-schema-comments@w3.org
Message-Id: <20011119084141.B275.KOHSUKE.KAWAGUCHI@sun.com>

I think the following derivation is valid:

<xs:complexType name="B">
  <xs:anyAttribute namespace="urn:foo" processContents="strict"/>

<xs:complexType name="D">
    <xs:restriction base="B">
      <xs:anyAttribute namespace="urn:foo" processContents="skip"/>

But in this derivation D is not a subset of B (i.e., some content model
is valid wrt to D but not with B)

Kohsuke KAWAGUCHI                          +1 650 786 0721
Sun Microsystems                   kohsuke.kawaguchi@sun.com
Received on Monday, 19 November 2001 11:46:52 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:08:54 UTC