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 3845 - Missing tests for last()
Summary: Missing tests for last()
Status: RESOLVED LATER
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: 1.0.1
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Frans Englich
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-17 20:25 UTC by Michael Kay
Modified: 2006-12-12 18:51 UTC (History)
0 users

See Also:


Attachments

Description Michael Kay 2006-10-17 20:25:13 UTC
There appear to be no tests (other than error tests) that use last() outside a predicate (specifically, on the rhs of "/"). The same might also be true of position() - I haven't checked thoroughly. These expressions are not very useful but they need to be tested

Examples of such expressions are

//*/last()

//*/position()

//*/(position() = last())

or marginally more usefully

/x/y/subsequence($s, position(), 1)
Comment 1 Frans Englich 2006-10-17 20:55:12 UTC
I'll take care of this when the current freeze is released.


Frans
Comment 2 Carmelo Montanez 2006-12-12 18:51:58 UTC
Frans:

Thanks for the offer.  Look forward to it.  marking this as "resolve" "later"

Carmelo