[Bug 4523] Default Unprefixed Namespace Handling is Problematic

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





------- Comment #4 from davidc@nag.co.uk  2007-05-08 15:03 -------
(In reply to comment #2)

> Does this meet your needs?
> 

It gets the right answer but in general rewriting a large set of queries from
/a/b[c=d]/e
to
/*:a[namespace-uri()='']/
*:b[namespace-uri()=''][*:c[namespace-uri()='']=*:d[namespace-uri()='']]/
*:e[namespace-uri()='']
is tedious and error prone, and the resulting expression is definitely harder
to read and maintain. Also the resulting expression may fail on systems using
static typing checks as (I think) that by using /*:bar[namespace-uri()='']
form you would fail to match an expected type that required a sequence of bar
elements in no-namespace as the static typing won't see inside the predicate
and so type this as a sequence of elements in any namespace.

David

Received on Tuesday, 8 May 2007 15:03:28 UTC