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 28900 - [XP 3.1] Note on distinguishability of maps and arrays
Summary: [XP 3.1] Note on distinguishability of maps and arrays
Status: RESOLVED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XPath 3.1 (show other bugs)
Version: Candidate Recommendation
Hardware: PC All
: P2 minor
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-07-05 20:35 UTC by Michael Kay
Modified: 2015-07-13 21:28 UTC (History)
0 users

See Also:


Attachments

Description Michael Kay 2015-07-05 20:35:02 UTC
In section 3.11.2.1 the sentence

XPath 3.1 has no operators that can distinguish a map or array from another map or array with the same values.

is repeated in two separate Notes. They should be amalgamated.

In the version of the note in 3.11.1.1 there is a typo:

In some existing implementations that support updates via proprietary extensions, if the MapValueExpr evaluates to a map or array, the associated value is a new ^ or array with the same values.

At [^] insert "map".
Comment 1 Michael Kay 2015-07-05 20:38:37 UTC
In the same section 3.11.2.1 this is a very confused sentence.

The members of a SquareArrayConstructor can be any value, separated by commas.

An array has members, a SquareArrayConstructor does not. And the things in a SquareArrayConstructor are not values, they are expressions (ExprSingle).
Comment 2 Jonathan Robie 2015-07-13 21:28:14 UTC
(In reply to Michael Kay from comment #0)
> In section 3.11.2.1 the sentence
> 
> XPath 3.1 has no operators that can distinguish a map or array from another
> map or array with the same values.
> 
> is repeated in two separate Notes. They should be amalgamated.
> 
> In the version of the note in 3.11.1.1 there is a typo:
> 
> In some existing implementations that support updates via proprietary
> extensions, if the MapValueExpr evaluates to a map or array, the associated
> value is a new ^ or array with the same values.
> 
> At [^] insert "map".

Fixed.
Comment 3 Jonathan Robie 2015-07-13 21:28:54 UTC
(In reply to Michael Kay from comment #1)
> In the same section 3.11.2.1 this is a very confused sentence.
> 
> The members of a SquareArrayConstructor can be any value, separated by
> commas.
> 
> An array has members, a SquareArrayConstructor does not. And the things in a
> SquareArrayConstructor are not values, they are expressions (ExprSingle).

I changed this to:

A SquareArrayConstructor consists of a comma-delimited set of argument expressions. It returns an array in which each member contains the value of the corresponding argument expression.