Re: [FO31] map:entry superfluous?

Just for the record: this comment was captured at

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

where you can find the record of the Working Group's deliberations.

Many thanks for taking the time to comment on the specification.

Michael Kay
Saxonica
for the XSL and XQuery Working Groups


> On 30 Nov 2016, at 14:38, Thomas Fischer <fischer.th@gmail.com> wrote:
> 
> Hi,
> the documentation for map:entry <https://www.w3.org/XML/Group/qtspecs/specifications/xpath-functions-31/html/#func-map-entry> says:
> 
> Unlike the map expression (map{...}), this technique can be used to construct a map with a variable number of entries, for example:
>     map:merge(for $b in //book return map:entry($b/isbn, $b))
> 
> At least with Saxon-HE 9.7.0.8J you can achieve the same result with a simple map constructor
>     map:merge(for $b in //book return map{$b/isbn: $b})
> 
> I wonder, if this is just a "special feature" of Saxon or if there is any other reason to keep map:entry in the proposal
> 
> salute
> Th. Fischer
> 

Received on Thursday, 16 March 2017 09:54:30 UTC