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

Re: Redefinition

From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
Date: 07 Feb 2001 11:28:50 +0000
To: afo@zurich.ibm.com
Cc: www-xml-schema-comments@w3.org
Message-ID: <f5bhf26ratp.fsf@cogsci.ed.ac.uk>
afo@zurich.ibm.com writes:

> 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?

No, that's a careless wording on my part, should say "... from the
redefined schema" I think.

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

Sure, that should be OK.

ht
-- 
  Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
          W3C Fellow 1999--2001, part-time member of W3C Team
     2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
	    Fax: (44) 131 650-4587, e-mail: ht@cogsci.ed.ac.uk
		     URL: http://www.ltg.ed.ac.uk/~ht/
Received on Wednesday, 7 February 2001 06:28:53 GMT

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