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 28367 - [XT30] Invalid sequence type as="function()" in higher-order-functions-070
Summary: [XT30] Invalid sequence type as="function()" in higher-order-functions-070
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XSLT 3.0 Test Suite (show other bugs)
Version: Last Call drafts
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Abel Braaksma
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-29 17:19 UTC by Abel Braaksma
Modified: 2015-03-29 19:07 UTC (History)
1 user (show)

See Also:


Attachments

Description Abel Braaksma 2015-03-29 17:19:08 UTC
As in the title, from the test:

    <xsl:variable name="gcd" as="function()"
     select="
     function($x as xs:integer, $y as xs:integer) {
       if ($y eq 0)
       then abs($x)
       else $gcd($y,$x mod $y)
     }"/>
Comment 1 Michael Kay 2015-03-29 17:24:14 UTC
Agreed.
Comment 2 Abel Braaksma 2015-03-29 19:07:29 UTC
Repository updated with intended fix from comment#0.