This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 13147 - XQuerX tests ST-Axes011 are wrong
Summary: XQuerX tests ST-Axes011 are wrong
Status: RESOLVED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: unspecified
Hardware: PC Windows 3.1
: P2 normal
Target Milestone: ---
Assignee: Benjamin Nguyen
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-05 15:53 UTC by Daniel Turcanu
Modified: 2013-06-10 17:05 UTC (History)
3 users (show)

See Also:


Attachments

Description Daniel Turcanu 2011-07-05 15:53:19 UTC
The XQueryX tests XQueryX/StaticTyping/STPathExpr/STSteps/STAxes/ST-Axes011, ST-Axes012, ST-Axes013, ST-Axes014, ST-Axes015
are not equivalent to their XQuery counterparts.
They generate 
declare variable $input-context external;
instead of
declare variable $input-context as document-node() external;

The tests results are not the ones expected.
Comment 1 Michael Dyck 2011-07-05 19:24:48 UTC
> They generate 
> declare variable $input-context external;
> instead of
> declare variable $input-context as document-node() external;

But their XQuery counterparts have
    declare variable $input-context external;
so they *are* equivalent.

Your test harness is perhaps adding "as document-node()" to the XQuery queries, as it is allowed to do. But then it should presumably make the corresponding addition to the XQueryX queries.
Comment 2 Daniel Turcanu 2011-07-06 09:05:26 UTC
I looked again in the latest XQTS, and the XQuery counterparts include the "as document-node()".
If they didn't include that, those tests won't belong to Static Typing group.
We are not changing anything in the w3c tests, this is not allowed, because the default type is item()*.
Comment 3 Michael Dyck 2011-07-06 22:32:57 UTC
(In reply to comment #2)
> I looked again in the latest XQTS, and the XQuery counterparts include the "as
> document-node()".

Hm, well, that's odd. Those files don't have "as document-node()" in the CVS repository for XQTS.

I downloaded the latest XQTS snapshot:
  http://dev.w3.org/2006/xquery-test-suite/PublicPagesStagingArea/XQTS_1_0_3.zip
unpacked it, and checked there. The files
    Queries/XQuery/StaticTyping/STPathExpr/STSteps/STAxes/ST-Axes01*.xq
all have
    declare variable $input-context external;
the same as in CVS.

In fact, in the whole XQTS 1.0.3, I only found one occurrence of a variable declaration with "as document-node()" (outside of the "Guidelines for Running ..."), and that's in
    Queries/XQuery/PathExpr/Steps/Axes/K2-Axes-86.xq

So it seems that the "as document-node()" must have been added to your copies of ST-Axes01*.xq at some point after they left W3C.
Comment 4 A Goldberg 2012-08-24 13:25:18 UTC
I should not have an administrator GBAR  aka Gillian Gordon Crozier has misteprepsented Hershel's to you and google
Comment 5 O'Neil Delpratt 2013-06-10 17:05:21 UTC
Bug issue resolved in QT3