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: Fri, 18 Mar 2005 09:18:04 +0000
To: Kasimier Buchcik <kbuchcik@4commerce.de>
Cc: xmlschema-dev@w3.org
Message-ID: <f5bekedia7n.fsf@erasmus.inf.ed.ac.uk>

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

> Just to be 100% sure here, is the following correct?
> If an element or attribute is validated, all the components for its
> namespace "N" must have been assembled already. If any following element
> defines additional components for this namespace "N" to be assembled via
> xsi, this results in an error. So the components for this namespace "N"
> must be in a "final" state.


> I can only guess that this restriction includes _indirect_ expansion of
> components for this namespace "N", through schema documents with a
> different targetNamespace, in which case I'd like to know if it would be
> already an error to just mention the import of this targetNamespace "N",
> or some of the components need to be identified as "new" to the
> targetNamespace "N".

The latter, I think, but the spec. is not clear on this case.

> Thinking further, a streaming validation would only work if the state
> of components with a specific targetNamespace is completely frozen at
> the time of first usage for validation. This should include missing
> sub-components as well; since, if component references could have been
> resolved with the use of components assembled deeper in the tree, a
> streaming validation would differ. So, once a component for a
> specific targetNamespace was used for validation, don't change any
> components with this targetNamespace.
> Is this somehow anchored in the spec as well? Excuse me if I'm just
> unable to find it the spec.

Not in detail -- the schemaLoc constraint we're discussing is meant to
cover that.  It doesn't go on to say you can't also add new stuff at
random, based on some other information that arrives later -- perhaps
it should.

 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 Friday, 18 March 2005 09:18:11 UTC

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