Re: Context and... Re: the case of two bats

The (in)famous two-bats example led me to think of this one:

    <catalog
        xmlns:a="./foo"
        xml:base="http://www.sushi.org">
     <inventory
        xmlns:b="./foo"
        xml:base="http://www.sushi.org/octopi">
        <bat a:qty="100"  b:qty="200" />
      <inventory />
     <catalog/>

According to the Namespace spec as it stands, this document
is clearly invalid because a:qty and b:qty violate the
uniqueness-of-attributes rule.  Yet there's a case to be
made (though not one I advocate) that the document ought to
be valid since the two different namespace names absolutize
differently.

This example is different from the others, I believe, since
it involves not just questions of interpretation but
questions of validity according to the Namespace spec itself
(forget about any other specs that might be involved).

Paul Abrahams

Received on Wednesday, 14 June 2000 19:05:00 UTC