W3C home > Mailing lists > Public > xmlschema-dev@w3.org > April 2007

Re: redefine and interoperability problems

From: Jirka Kosek <jirka@kosek.cz>
Date: Thu, 05 Apr 2007 10:44:02 +0200
Message-ID: <4614B6D2.8090302@kosek.cz>
To: Michael Kay <mike@saxonica.com>
CC: xmlschema-dev@w3.org
Michael Kay wrote:

> and there's no statement anywhere about what it means precisely for a
> component to be "from" a particular schema document. Saxon's interpretation
> is that a model group definition component comes "from" a schema document if
> the defining xs:group element is contained in that schema document, and an
> xs:group element in an included document therefore does not qualify.
> However, one could legitimately argue that the specification of xs:include
> states:
> 
> "The .XML Schema. corresponding to <schema> contains not only the components
> corresponding to its definition and declaration [children], but also all the
> components of all the .XML Schemas. corresponding to any <include>d schema
> documents."

Thanks for clarification, now I see. It seems that both interpretations
(ie. taking includes into account and ignoring them) can be considered
as a correct according to the specification.

However I would argue that approach which takes also included schemas
into account is much more useful for schema developers. In this case you
doesn't have to study details of how schema is composed from separate
files, you just use it as a single piece. Without this approach my
example have to duplicate dozen of schema files in order to redefine
just single group, because this group is defined at the second level of
inclusion.

> I personally think xs:redefine is one of those facilities (xsi:nil is
> another) where you're better off pretending it doesn't exist. Implementors
> don't have that luxury, but users do.

OK, it was just example for forthcoming XML schemas training anyway.

-- 
------------------------------------------------------------------
  Jirka Kosek      e-mail: jirka@kosek.cz      http://xmlguru.cz
------------------------------------------------------------------
       Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
------------------------------------------------------------------
 OASIS DocBook TC member, W3C Invited Expert, ISO/JTC1/SC34 member
------------------------------------------------------------------
 Want to speak at XML Prague 2007 => http://xmlprague.cz/cfp.html


Received on Thursday, 5 April 2007 08:43:58 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:59 GMT