W3C home > Mailing lists > Public > xmlschema-dev@w3.org > November 2004

RE: Including schemata with duplicate referents

From: Michael Kay <mike@saxonica.com>
Date: Fri, 5 Nov 2004 20:56:26 -0000
To: "'Alessandro Triglia'" <sandro@mclink.it>, <xmlschema-dev@w3.org>
Message-Id: <E1CQB8M-0006bB-00@ukmail1.eechost.net>

> Yes, but you are saying "from" a component.  When a <schema> 
> includes another <schema>, there must be a valid Schema 
> corresponding to the included <schema>.  Unless there are 
> circular includes/imports, it must be possible to resolve all 
> the references in the included <schema> before doing the 
> inclusion, otherwise you won't have a "valid schema".

No, we had a discussion on that point on this list a few weeks ago. Section
4.2.1 says:

<quote>
As discussed in Missing Sub-components (§5.3), ˇQNameˇs in XML
representations may fail to ˇresolveˇ, rendering components incomplete and
unusable because of missing subcomponents. During schema construction,
implementations must retain ˇQNameˇ values for such references, in case an
appropriately-named component becomes available to discharge the reference
by the time it is actually needed.
</quote>

Despite various other phrases that appear to contradict this, it seems that
the intent of the spec is that when <schema> A includes <schema>s B and C,
you can have references from components in B to components in C, and from B
to A.

Michael Kay
Received on Friday, 5 November 2004 20:56:33 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 23:40:23 UTC