Re: Multiple and circular import/include

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.

Yes.

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

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