- From: <bugzilla@wiggum.w3.org>
- Date: Wed, 05 Aug 2009 13:24:44 +0000
- To: public-qt-comments@w3.org
http://www.w3.org/Bugs/Public/show_bug.cgi?id=7216 Summary: [XQTS] ST-Axes* tests do not specify types of external variables Product: XML Query Test Suite Version: unspecified Platform: PC OS/Version: Windows NT Status: NEW Severity: normal Priority: P2 Component: XML Query Test Suite AssignedTo: andrew.eisenberg@us.ibm.com ReportedBy: oliver@cbcl.co.uk QAContact: public-qt-comments@w3.org ST-Axes001 is as follows: (: Name: ST-Axes001 :) (: Description: self:: axis with explicit name test called on set of nodes which do not contain any nodes of this name :) (: insert-start :) declare variable $input-context external; (: insert-end :) fn:count($input-context//center/self::nowhere) Note that as the query stands, the static type of $input-context is not declared and so it defaults to item(); Whilst it is acceptable for a test harness to rewrite the declaration, for example to: declare variable $input-context as node() external; this should not be necessary in order to pass a test. Since this test is for the static typing feature, I suggest that the type of the argument should be more explicit, either by specifying it in the declaration (which could break some test harnesses), or by an explicit treat as in the query: fn:count($input-context treat as node()//center/self:nowhere) This same problem occurs in ST-Axes001 - ST-Axes015 -- Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.
Received on Wednesday, 5 August 2009 13:24:54 UTC