W3C home > Mailing lists > Public > public-qt-comments@w3.org > June 2016

[Bug 29683] [FO31] Map lookup through function-call syntax does not explain what happens if the key does not exist

From: <bugzilla@jessica.w3.org>
Date: Thu, 02 Jun 2016 10:06:15 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-29683-523-ljUkp6gZyT@http.www.w3.org/Bugs/Public/>

--- Comment #1 from Abel Braaksma <abel.braaksma@xs4all.nl> ---
Note, the example in FO31 section 17.5.3 fn:json-to-xml suggests that $m(x),
where $m is a map, should return the empty sequence. Checking this code was
what brought me to reporting this, as I had expected map:exists($c0chars,
$char) in there somewhere.

This rule is implied from the lines with $replacement in the code below:

         $c0chars := map {
         $replacement := $c0chars($char)
        if (exists($replacement))

You are receiving this mail because:
You are the QA Contact for the bug.
Received on Thursday, 2 June 2016 10:06:19 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:58:00 UTC