Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: redefine and interoperability problems

From: Jirka Kosek <jirka@-----.-->
To: Michael Kay <mike@--------.--->
Date: 4/5/2007 12:44:00 PM
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 interpreta=
tion
> is that a model group definition component comes "from" a schema docume=
nt 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:incl=
ude
> states:
> 
> "The .XML Schema. corresponding to <schema> contains not only the compo=
nents
> corresponding to its definition and declaration [children], but also al=
l the
> components of all the .XML Schemas. corresponding to any <include>d sch=
ema
> 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. Implement=
ors
> don't have that luxury, but users do.

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

-- 
------------------------------------------------------------------
  Jirka Kosek      e-mail: jirka@k...      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



transparent
Print
Mail
Like It
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