[Bug 4523] Default Unprefixed Namespace Handling is Problematic

http://www.w3.org/Bugs/Public/show_bug.cgi?id=4523





------- Comment #3 from mike@saxonica.com  2007-05-08 14:52 -------
>From a usability point of view, I don't think you can expect people writing
1000-line queries to use the construct

*:bar[namespace-uri()='']

every time they want to refer to an element name in the source document.

I can think of a number of possible solutions:

(a) following XSLT 2.0, introduce a prolog declaration

declare default path namespace "zzzz";

indicating that an unprefixed element name in a Step is considered to be in
namespace "zzzz", regardless of any other default namespace that might be in
force

(b) introduce syntax that allows one to refer to an element in no namespace as
distinct from an element in the default namespace, for example :foo or ~:foo

(c) introduce some capability to set the namespace context locally without
constructing a new element, for example

with xmlns="" {
  foo/bar
}

Received on Tuesday, 8 May 2007 14:52:16 UTC