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 29311 - [XSLT30] First example in http://www.w3.org/TR/xslt-30/#map-examples has superfluous closing }
Summary: [XSLT30] First example in http://www.w3.org/TR/xslt-30/#map-examples has supe...
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XSLT 3.0 (show other bugs)
Version: Candidate Recommendation
Hardware: PC Windows NT
: 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: 2015-11-29 10:56 UTC by Martin Honnen
Modified: 2016-10-06 18:42 UTC (History)
0 users

See Also:


Attachments

Description Martin Honnen 2015-11-29 10:56:57 UTC
The first example in http://www.w3.org/TR/xslt-30/#map-examples has the code 

      <xsl:with-param name="highest-earners"
          select="let $existing := $highest-earners($this/department)
                  return if ($existing/salary gt $this/salary)
                         then $highest-earners
                         else map:put($highest-earners, $this/department, $this})"/>

which has a wrong `}` at the end of the `select` expression, that closing curly brace should be removed:

      <xsl:with-param name="highest-earners"
          select="let $existing := $highest-earners($this/department)
                  return if ($existing/salary gt $this/salary)
                         then $highest-earners
                         else map:put($highest-earners, $this/department, $this)"/>
Comment 1 Michael Kay 2015-12-10 15:27:50 UTC
Thanks, fixed. (No change log entry.)