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 2656 - preceding-8 results are wrong
Summary: preceding-8 results are wrong
Status: CLOSED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: 0.8.4
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Carmelo Montanez
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-05 17:55 UTC by Michael Kay
Modified: 2006-06-22 12:59 UTC (History)
0 users

See Also:


Attachments

Description Michael Kay 2006-01-05 17:55:38 UTC
The query is 

($input-context1/works[1]/employee[13]) >>
($input-context1/works[1]/employee[12]/overtime[1]/day[1]/preceding::day)

In fact $input-context1/works[1]/employee[12]/overtime[1]/day[1] is the first
day element in the document, so preceding::day selects nothing, therefore the
result of the query is an empty sequence.
Comment 1 Carmelo Montanez 2006-01-09 14:37:07 UTC
Michael:

Correct.  Actually I changed the test to achieve the desired evaluation.
Changed query to:
$input-context1/works[1]/employee[13]) >> ($input-context1/works[1]/employee
[12]/overtime[1]/day[2]/preceding::day).

Please close the bug when able to verify.  Changed test ws resubmitted.

Thanks,
Carmelo