[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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>
Re: implementing redefines - additional test

> 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 
appropriate
        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_.)

pvb

pvb

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

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.