[Bug 29111] New: Incorrect example in section 3.5.3.1: default case

https://www.w3.org/Bugs/Public/show_bug.cgi?id=29111

            Bug ID: 29111
           Summary: Incorrect example in section 3.5.3.1: default case
           Product: XPath / XQuery / XSLT
           Version: Working drafts
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XQuery 3.1 Requirements and Use Cases
          Assignee: jonathan.robie@gmail.com
          Reporter: oneil@saxonica.com
        QA Contact: public-qt-comments@w3.org
  Target Milestone: ---

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.")
};

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Friday, 4 September 2015 13:22:09 UTC