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 11404 - XSLT 2.1 (11 May 2010), Section 15.8: Example on intersection
Summary: XSLT 2.1 (11 May 2010), Section 15.8: Example on intersection
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XSLT 3.0 (show other bugs)
Version: Working drafts
Hardware: PC Linux
: P2 normal
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: 2010-11-25 11:27 UTC by O'Neil Delpratt
Modified: 2011-03-24 16:20 UTC (History)
0 users

See Also:


Attachments

Description O'Neil Delpratt 2010-11-25 11:27:34 UTC
The example on intersection using xsl:merge in Section 15.8 is missing an '>' at the end of the <xsl:if ...> instruction (5th line from bottom in the example):

<xsl:merge>
  <xsl:merge-source>                  
    <xsl:merge-input select="1 to 30">
      <xsl:merge-key select="."/>
    </xsl:merge-input>
  </xsl:merge-source>
  <xsl:merge-source>                  
    <xsl:merge-input select="20 to 40">
      <xsl:merge-key select="."/>
    </xsl:merge-input>
  </xsl:merge-source>
  <xsl:merge-action>
    <xsl:if test="count(current-group()) eq 2"
      <xsl:value-of select="current-grouping-key()"/>
    </xsl:if>
  </xsl:merge-action>
</xsl:merge>
Comment 1 Michael Kay 2011-03-24 16:20:11 UTC
This has been fixed.