W3C home > Mailing lists > Public > xmlschema-dev@w3.org > August 2005

Re: implementing redefines - additional test

From: <Paul.V.Biron@kp.org>
Date: Fri, 12 Aug 2005 14:26:55 -0700
To: kbuchcik@4commerce.de
Cc: xmlschema-dev@w3.org, xmlschema-dev-request@w3.org
Message-Id: <OFAB1CD04F.8EA4A81F-ON8825705B.0075176F-8825705B.0075D1D5@KP.ORG>

> Although we redefine "dummy.xsd", which neither contains, nor
> includes/imports the "base" type, this type was somehow redefined;
> Is this the expected behaviour or a bug?

Stricly speaking, that's a bug.

Section 4.2.2 [1] says:

        The definitions within the <redefine> element itself are 
restricted to be
        redefinitions of components from the <redefine>d schema document,
        in terms of themselves. 

and SRC 'Individual Component Redefinition' [2] says, among other things:

        In all cases there must be a top-level definition item of the 
        name and kind in the <redefine>d schema document.

> If the behaviour is expected, then what's the sense of the
> schemaLocation attribute of a <redefine>, if we just need to
> <include> the component to be able to redefine it?

Conceptually, a redefine is just an include and then an edit of one or 
more components.   Your example leads me to say that perhaps the spec, as 
written, is too strict...in that I don't really see a reason why the 
component that is redefined must exist in the redefined schema 
document...it should just have to exist in the redefining schema (which it 
normally does by virture of the fact that a redefine is an include _and 
then an edit_.)



[1] http://www.w3.org/TR/xmlschema-1/#modify-schema
[2] http://www.w3.org/TR/xmlschema-1/#src-expredef
Received on Friday, 12 August 2005 21:50:03 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:30 UTC