This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
The description of map:for-each has the following 2 examples: distinct-values(map:for-each-entry(map{1:"yes", 2:"no"}, function($k, $v){$v}) and map:merge(map:for-each(map{"a":1, "b":2}, function($k, $v){map:entry($k, $v+1)}) Both of these should have an extra closing parenthesis ) on the end. Also, the second one is a link to the map:merge definition, which looks a bit strange.
Thanks, I've fixed these editorial errors in both the F+O 3.1 and the XSLT 3.0 specifications. Unfortunately there's no easy way of fixing the markup: the stylesheets for the F+O spec insert the links to function definitions moronically.