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>

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


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)



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

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 6 December 2009 18:12:57 GMT