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

Re: Multiple and circular import/include

From: Henry S. Thompson <ht@inf.ed.ac.uk>
Date: Mon, 14 Mar 2005 08:21:41 +0000
To: Kasimier Buchcik <kbuchcik@4commerce.de>
Cc: noah_mendelsohn@us.ibm.com, xmlschema-dev@w3.org
Message-ID: <f5bll8qab8q.fsf@erasmus.inf.ed.ac.uk>
Re: Multiple and circular import/include

Kasimier Buchcik <kbuchcik@4commerce.de> writes:

> One obvious example would be a scenario where an element "E"
> is validated against a lax wildcard; at this point no declaration for
> the element "E" exists, thus the element seems valid. A descendant
> element imports an additional schema via xsi. This schema contains an
> element declaration "DE" for "E", which -  if it would have been
> available - would have identified the element "E" as invalid. So this
> way the validation would differ from the schemata being computed all
> at validation begin.

This is actually an error [1]:

  4. xsi:schemaLocation and xsi:noNamespaceSchemaLocation [attributes]
     can occur on any element. However, it is an error if such an
     attribute occurs after the first appearance of an element or
     attribute information item within an element information item
     initially *validated* whose [namespace name] it addresses.

This error is intended to 'protect' streaming validators from giving
a different answer in this pathological case.

ht

[1] http://www.w3.org/TR/xmlschema-1/#schema-loc
-- 
 Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
                     Half-time member of W3C Team
    2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
            Fax: (44) 131 650-4587, e-mail: ht@inf.ed.ac.uk
                   URL: http://www.ltg.ed.ac.uk/~ht/
[mail really from me _always_ has this .sig -- mail without it is forged spam]
Received on Monday, 14 March 2005 08:22:06 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.