[XML-SIG] [Q] Namespace
Lars Marius Garshol
21 Nov 1998 21:10:11 +0100
* Tamito Kajiyama
| First, according to the specification (Subsection 5.2), "If the URI
| in a default namespace declaration is empty, then unprefixed
| elements in the scope of the declaration are not considered to be in
| any namespace." I cannot understand what this means. What should a
| parser do on such unprefixed elements? Really nothing to do?
This is used for turning off a default namespace:
<foo/> <!-- The expanded name is here ns='http://default.namespace.uri/'
and type='foo' -->
<bar xmlns=""/> <!-- The expanded name is here ns="" and type="bar -->
| Second, what is the initial value of the default namespace before
| the first declaration of the default namespace appears? Is the
| default namespace undefined at first?
So it is. The namespace is not defined until an explicit declaration
appears, which is entirely reasonable to me, at least.
| I think it is reasonable that the namespace associated to the DTD of
| the XML document, if any, would be the first default namespace.
What do you mean by this? I can't follow you here.