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 29211 - [FO31] (editorial) some typos in examples of fn:function-lookup
Summary: [FO31] (editorial) some typos in examples of fn:function-lookup
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: Functions and Operators 3.1 (show other bugs)
Version: Candidate Recommendation
Hardware: PC Windows NT
: P2 minor
Target Milestone: ---
Assignee: Michael Kay
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
Depends on:
Reported: 2015-10-19 23:58 UTC by Abel Braaksma
Modified: 2016-03-22 10:04 UTC (History)
0 users

See Also:


Description Abel Braaksma 2015-10-19 23:58:24 UTC
Under section 16.1.1 of the internal WD of FO31, a few typos can be found in the examples:

> (let $f := fn:function-lookup(xs:QName('zip:binary-entry', 2) return if
> (exists($f)) then $f($href, $entry) else ()

has (1) a leading paren that is not closed, and (2) a ctor function with two arguments. I think it should be something like:

let $f := fn:function-lookup(xs:QName('zip:binary-entry'), 2) 
return if (exists($f)) then $f($href, $entry) else ()
Comment 1 Michael Kay 2015-10-21 22:15:39 UTC
Thanks, fixed.