W3C home > Mailing lists > Public > xmlschema-dev@w3.org > March 2005

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>

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.


[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 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:56:07 UTC