W3C home > Mailing lists > Public > public-qt-comments@w3.org > May 2007

[Bug 4523] Default Unprefixed Namespace Handling is Problematic

From: <bugzilla@wiggum.w3.org>
Date: Tue, 08 May 2007 15:03:23 +0000
CC:
To: public-qt-comments@w3.org
Message-Id: <E1HlRDn-0006Xp-L2@wiggum.w3.org>

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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:18 UTC