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 29131 - Function ext:sc missing definition in example. See section 3.7
Summary: Function ext:sc missing definition in example. See section 3.7
Status: RESOLVED WONTFIX
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XQuery 3.1 Requirements and Use Cases (show other bugs)
Version: Working drafts
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Jonathan Robie
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-17 15:28 UTC by O'Neil Delpratt
Modified: 2015-09-22 16:05 UTC (History)
0 users

See Also:


Attachments

Description O'Neil Delpratt 2015-09-17 15:28:32 UTC
The following example in section 3.7 has undeclared definition of the function ext:sc. Also the syntax of the map constructor in the return statement is incorrect:


declare variable $languages := ("English", "Greek", "Latin");

declare function local:spellcheck($languages, $text)
{
  map:merge (
     map { "languages" : $languages },
     map { "raw" : $text  },

     for $l in $languages
     return { 
       $l : array {
         for $w in $text
         return ext:sc($l, $w)
       }
     }
  )
};
Comment 1 O'Neil Delpratt 2015-09-22 16:05:40 UTC
Note: Due to the nature of the test this cannot go into the test suite