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 22762 - Production of MapExpr contains some small errors
Summary: Production of MapExpr contains some small errors
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XSLT 3.0 (show other bugs)
Version: Member-only Editors Drafts
Hardware: All All
: P2 trivial
Target Milestone: ---
Assignee: Michael Kay
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-22 23:01 UTC by Abel Braaksma
Modified: 2013-08-01 15:16 UTC (History)
0 users

See Also:


Attachments

Description Abel Braaksma 2013-07-22 23:01:48 UTC
Currently, the production is described as follows:

MapExpr := "{" (KeyExpr ":" ValueExpr ("," KeyExpr ":" ValueExpr )*)? "}"
KeyExpr := ExprSingle
ValueExpr := ExprSingle

For standard EBNF W3C-style, I believe this should have "::=" instead for the assignment operator. Also, the layout it different from other EBNF productions in the same spec.
Comment 1 Michael Kay 2013-07-31 16:47:13 UTC
Fixed to mimic the standard layout more closely. It's still a simulation, because the map expression syntax isn't integrated with the grammar machinery - this would require defining a complete grammar rather than merely a delta to the XPath 3.0 grammar.