Re: URIs quack like a duck

David Carlisle wrote:

> > The problem with that, I think, is that an element can have several
> > xmlns attributes, for different namespaces, attached to it.
> An element is only ever in one namespace.
>
> > So there's then a question as to which namespace the
> > xsi:schemaLocation refers to.
>
> It refers to the schema tat describes the language of which the
> element is part. That schema may use one or more namespaces which may
> or may not be included in the namespaces declared on that element.

Maybe I'm missing something obvious or maybe I just wasn't clear enough the
first time.  I'm thinking of this case:

    <foo
        xmlns:x="uuid:12345"
        xmlns:y="uuid:67890"
         xsi:schemaLocation="http://www.someone.org/data/schemaQ"
         <bar x:a="4"></bar>
     </foo>

Is <bar> described by the schema or not?   Here we can tell the answer:

    <foo
        xmlns:x="uuid:12345"
        xmlns:y="uuid:67890"
         xmlschema:x="http://www.someone.org/data/schemaQ"
         xmlschema:y="http://www.someone.org/data/schemaT"
         <bar x:a="4"></bar>
     </foo>

Paul Abrahams

Received on Thursday, 1 June 2000 14:32:20 UTC