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

Redefinition

From: <afo@zurich.ibm.com>
Date: Wed, 7 Feb 2001 11:20:05 +0100
To: www-xml-schema-comments@w3.org
Message-ID: <C12569EC.0038C545.00@d12mta01.de.ibm.com>



Hi,

 Part I Section 6.2.2  says  "The definitions within the  redefine
element itself are restricted to be redefinitions of components from the
redefined schema document" Does it mean that we cannot redefine
components which are not explicitly defined in the redefined schema
document
but which come from schemas included by the redefined schema document? In
other words, is
the following example valid?

In A.xsd:
<xsd:schema xmlns:xsd="http://www.w3.org/2000/10/XMLSchema" >
     <xsd:redefine schemaLocation="B.xsd">
          <xsd:simpleType name="C">
               <xsd:restriction base="C">
                  <xsd:length value="3"/>
              </xsd:restriction>
          </xsd:simpleType>
     </xsd:redefine>
     <xsd:simpleType name="A">
          <xsd:restriction base="xsd:string"/>
     </xsd:simpleType>
</xsd:schema>

In B.xsd
<xsd:chema xmlns:xsd="http://www.w3.org/2000/10/XMLSchema">
     <xsd:include schemaLocation="C.xsd"/>
     <xsd:simpleTypename="B">
          <xsd:restriction base="xsd:string"/>
     </xsd:simpleType>
</xsd:schema>

In C.xsd
<xsd:schema xmlns:xsd="http://www.w3.org/2000/10/XMLSchema">
     <xsd:simpleTypename="C">
          <xsd:restriction base="xsd:string"/>
     </xsd:simpleType>
</xsd:schema>

Thanks,

Achille Fokoue .
Received on Wednesday, 7 February 2001 05:21:08 GMT

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