W3C home > Mailing lists > Public > public-qt-comments@w3.org > September 2006

[Bug 3701] fn-union-node-args-003

From: <bugzilla@wiggum.w3.org>
Date: Thu, 14 Sep 2006 17:02:56 +0000
CC:
To: public-qt-comments@w3.org
Message-Id: <E1GNuc4-0005Zn-MW@wiggum.w3.org>

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





------- Comment #2 from mike@saxonica.com  2006-09-14 17:02 -------
>One way to allow this expression to pass staic type checking would be to filter
the operand of fn:root:

$input-context/bib/book[3]/title | root(($input-context/bib/book[3]/title)[1])

This really demonstrates worst possible practice. To get the query through
static  cardinality checking, you change the expression in such a way that
there is no cardinality checking at all, whether static or dynamic. If static
type checking is going to encourage people to do this sort of thing, then it is
a really bad idea.
Received on Thursday, 14 September 2006 17:03:07 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:14:44 GMT