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 example in section 3.5.3.1 incorrectly has the keyword 'case' after 'default'. See below: declare function local:play( $secret-number as xs:integer, $guessed-number as xs:integer, $translator as function(xs:string) as xs:string) { switch (true()) case $guessed-number eq $secret-number return $translator("You won!") case $guessed-number lt $secret-number return $translator("The secret number is greater.") default case (: $guessed-number gt $secret-number :) return $translator("The secret number is lower.") };
I just committed a fix.