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 30031 - [FO31] XSLT code sample for for-each-pair has errors
Summary: [FO31] XSLT code sample for for-each-pair has errors
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: Functions and Operators 3.1 (show other bugs)
Version: Candidate Recommendation
Hardware: PC Windows NT
: P2 trivial
Target Milestone: ---
Assignee: Michael Kay
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-08 19:09 UTC by Max Toro
Modified: 2016-12-16 19:55 UTC (History)
0 users

See Also:


Attachments

Description Max Toro 2016-12-08 19:09:01 UTC

    
Comment 1 Max Toro 2016-12-08 19:11:41 UTC
In section 16.2.5 fn:for-each-pair:

    <xsl:function name="fn:for-each-pair">
      <xsl:param name="seq1/>
      <xsl:param name="seq2/>
      <xsl:param name="f"/>
      <xsl:if test="fn:exists($seq1) and fn:exists($seq2)">
        <xsl:sequence select="$f(fn:head($seq1), fn:head($seq2))"/>
        <xsl:sequence select="fn:for-each-pair(fn:tail($seq1), fn:tail($seq2), $f)"/>
      </xsl:if>
    </xsl:function>

It's missing the close quote for the first two parameters.
Comment 2 Michael Kay 2016-12-08 20:10:34 UTC
Thank you, now fixed.