Namespace question

I'd like to create namespaces that "inherit" from each other. That is,
I'd like to create Namespace-A, which includes names from Namespace-B.
I'd like to use such a namespace as the default namespace (so I can make
unqualified
references to names in the (A + B) namespace). One way I can see of
accomplishing this is

<MyDoc xmlns:"someuri"
               xmlns:"anotheruri">
...
</MyDoc>

Is this legal (getting my default names from more than one "namespace")?

Is there another intended way of doing this?

Here are my assumptions about namespaces:

 there can be a file pointed to by the URI which has a dtd or schema
which defines elements and/or attribute names. While a document
referencing a namespace could use any XML name with the local prefix, a
valid XML document
will only use element and/or attribute names defined in that namespace
file, and other references to that names in that name space are
"undefined" or invalid.

Received on Tuesday, 29 August 2000 17:05:45 UTC