Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - RE: including a schema document multiple times >Thread Next - RE: including a schema document multiple times RE: including a schema document multiple timesTo: "Michael Kay" <mike@--------.---> Date: 9/18/2006 12:19:00 PM
Michael Kay writes:
> It claims to be carefully worded, but many readers would disagree!
> In particular, it relies on the concept of two schema components
> being "identical", which is nowhere defined. In fact it is
> explicitly undefined: in 3.4.6 we read "conforming implementations
> may disagree as to whether components are identical".
I agree, but one can also go too far in worrying about this. I haven't
heard anyone question the intent of the section quoted by Sandy in the
common case where two includes have schemaLocations with exactly the same
URI. Ignoring the bizarre chance that someone is editing the schema
between the processing of multiple includes, I think most everyone agrees
that the schema documents returned as representations on multiple accesses =
to the same URI are by most any useful definition the same, and therefore
covered by the clause in question.
The converse is what's less clear. Let's say you reference documents with =
different URIs, but the contents are pretty similar. Maybe the contents
are identical, or maybe they differ only in whitespace, etc., etc., or
more problematically they appear to redeclare components that feel pretty
much the same at the property level. That's where I agree that the
Recommendation is unfortunately unclear. I can also say that different
members of the workgroup have somewhat different intuitions as to how
they'd prefer to resolve the ambiguities, and so progress takes time.
While we have tried to devote the time that would lead to a clearer story
in Schema 1.1, I'm not very optimistic that we'll manage to do much beyond =
what's in the now public working drafts.
Anyway: I think there are important cases in which the recommendation is
quite clear. As far as I'm concerned, it is never an error to multiply
include the same absolute URI for a given namespace. What's less clear is =
whether there are other cases in which one should succeed too, e.g. ones
in which provably different schema documents declare or define what feel
like the same or similar components.
--------------------------------------
Noah Mendelsohn
IBM Corporation
One Rogers Street
Cambridge, MA 02142
1-617-693-4036
--------------------------------------
"Michael Kay" <mike@s...>
Sent by: xmlschema-dev-request@w...
09/18/2006 03:40 PM
To: "'Sandy Gao'" <sandygao@c...>, "'Wolfgang Jeltsch'"
<wolfgang@j...>
cc: <xmlschema-dev@w...>, (bcc: Noah
Mendelsohn/Cambridge/IBM)
Subject: RE: including a schema document multiple times
It claims to be carefully worded, but many readers would disagree! In
particular, it relies on the concept of two schema components being
"identical", which is nowhere defined. In fact it is explicitly undefined: =
in 3.4.6 we read "conforming implementations may disagree as to whether
components are identical".
Michael Kay
http://www.saxonica.com/
From: xmlschema-dev-request@w... [mailto:xmlschema-dev-request@w...]
On Behalf Of Sandy Gao
Sent: 18 September 2006 18:47
To: Wolfgang Jeltsch
Cc: xmlschema-dev@w...
Subject: Re: including a schema document multiple times
The spec is clear about multiple inclusion of the same document is OK. See =
sections 4.2.1.
"Note: The above is carefully worded so that multiple <include>ing of the
same schema document will not constitute a violation of clause 2 of Schema =
Properties Correct (=A73.16.6), but applications are allowed, indeed
encouraged, to avoid <include>ing the same schema document more than once
to forestall the necessity of establishing identity component by
component."
It's less clear about circular inclusion, but it's generally believed that =
it's also allowed.
Thanks,
Sandy Gao
XML Parser Development, IBM Canada
(1-905) 413-3255
sandygao@c...
Wolfgang Jeltsch <wolfgang@j...>
Sent by: xmlschema-dev-request@w...
18/09/2006 12:36 PM
To
xmlschema-dev@w...
cc
Subject
including a schema document multiple times
Hello,
is it problematic to include a schema document multiple times via
different
paths? For example, I might have a schema document which includes schema
documents A, B, and C which in turn include a schema document providing
basic
definitions.
What about circular inclusion?
Best wishes,
Wolfgang
From xan.gregg@j... Mon Sep 18 20:56:25 2006
Received: from aji.w3.org ([133.27.228.225])
by frink.w3.org with esmtp (Exim 4.50)
id 1GPQAD-00059R-6P
for xmlschema-dev@l...; M | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
