Project

Profile

Help

Bug #2169

map{} is parsed as ExprSingle, not as a Primary

Added by Michael Kay almost 5 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
XPath conformance
Sprint/Milestone:
Start date:
2014-10-08
Due date:
% Done:

100%

Legacy ID:
Applies to branch:
9.6
Fix Committed on Branch:
9.6
Fixed in Maintenance Release:

Description

The new syntax map{a "b"} is recognized as an ExprSingle, not as a Primary. This means it cannot be used in some contexts, for example

map{} instance of map(*)

Also, Saxon recognizes map expressions in the form {a (without the "map" keyword), which was a syntax at one time proposed by the W3C working groups, but subsequently dropped.

A patch is being committed on the 9.6 and 9.7 branches to recognize map expressions only as a Primary, and to drop support for the "bare curly braces" syntax, which can lead to confusing error messages.

History

#1 Updated by Michael Kay almost 5 years ago

  • Status changed from New to Resolved

#2 Updated by O'Neil Delpratt almost 5 years ago

  • Status changed from Resolved to Closed
  • % Done changed from 0 to 100
  • Fixed in version set to 9.6.0.2

Bug fix applied to the maintenance release Saxon 9.6.0.2

#3 Updated by O'Neil Delpratt almost 4 years ago

  • Sprint/Milestone set to 9.6.0.2
  • Applies to branch 9.6 added
  • Fix Committed on Branch 9.6 added
  • Fixed in Maintenance Release 9.6.0.2 added

Please register to edit this issue

Also available in: Atom PDF