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 19635 - [QT3TS] orderBy66
Summary: [QT3TS] orderBy66
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XQuery 3 & XPath 3 Test Suite (show other bugs)
Version: Working drafts
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: O'Neil Delpratt
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-19 14:01 UTC by Tim Mills
Modified: 2012-10-19 16:14 UTC (History)
1 user (show)

See Also:


Attachments

Description Tim Mills 2012-10-19 14:01:03 UTC
In orderBy66 there is a reference to $count, which appears not to be in scope.

       declare default element namespace "http://www.w3.org/XQueryTestOrderBy";

       <results>{
           for $i in 1 to 100
           order by -$i
           let $c := count
           let $e := <e i="{$i}" pos="{$count}"/>
           order by number($e/@i)
           where $count gt 90
           return $e!@pos!number()
           }
       </results>
Comment 1 Michael Kay 2012-10-19 14:51:08 UTC
Fixed.
Comment 2 Tim Mills 2012-10-19 16:14:48 UTC
Thanks.