Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: implementing redefines - additional test

From: Paul.V.Biron@--.---
To: kbuchcik@---------.--
Date: 8/12/2005 7:27:00 AM
> 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

From mike@s... Sat Aug 13 07:46:01 2005
Received: from lisa.w3


transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent