[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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>
RE: Including schemata with duplicate referents

> 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 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.