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

[Bug 3867] Static type checking of Constr-docnode-parent-1

From: <bugzilla@wiggum.w3.org>
Date: Thu, 26 Oct 2006 16:27:44 +0000
CC:
To: public-qt-comments@w3.org
Message-Id: <E1Gd852-0007iS-VM@wiggum.w3.org>

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





------- Comment #1 from nick@cbcl.co.uk  2006-10-26 16:27 -------
Similarly in fn-name-16

for $h in ($input-context1/works/employee[2]) 
return fn:count(fn:name($h/self::div))

$h has a static type of "element employee"

$h/self::div is expecting "element div" so the expression types as empty

(8.2.3.1.1 of the formal semantics is the relevant section)

Therefore I think [err:XPST0005] is valid (and is effectively what the test is
trying to test - but in a dynamic fashion)
Received on Thursday, 26 October 2006 16:27:54 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:14:17 GMT