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
To: public-qt-comments@w3.org
Message-Id: <E1GNuc4-0005Zn-MW@wiggum.w3.org>


------- 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 UTC

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