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

[Bug 3777] declare variable $input-context1 external;

From: <bugzilla@wiggum.w3.org>
Date: Fri, 29 Sep 2006 14:04:03 +0000
To: public-qt-comments@w3.org
Message-Id: <E1GTIyB-0004Ja-GS@wiggum.w3.org>


           Summary: declare variable $input-context1 external;
           Product: XML Query Test Suite
           Version: 1.0
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XML Query Test Suite
        AssignedTo: andrew.eisenberg@us.ibm.com
        ReportedBy: tim@cbcl.co.uk
         QAContact: public-qt-comments@w3.org

Refering to a variable declaration of the form:

declare variable $x external;

the XQuery spec states in:



"During query analysis, the type of $x is considered to be item()*. "

Thus XQTS tests which start:

declare variable $input-context external;

and use an expression such as $input-context/.... fail typechecking, since such
an expression requires node()*, not the more general item()*.

XQTS tests should therefore be changed to use, for example:

declare variable $input-context as node()* external;

Axes001-1 is an example of such a test.
Received on Friday, 29 September 2006 14:04:10 UTC

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