Redefinition

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 UTC