[Bug 27026] New: [XSLT30] EBNF incompatibility between XP31 MapConstructor and XSLT30 MapExpr

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug 27026] New: [XSLT30] EBNF incompatibility between XP31 MapConstructor and XSLT30 MapExpr

Bugzilla from bugzilla@jessica.w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=27026

            Bug ID: 27026
           Summary: [XSLT30] EBNF incompatibility between XP31
                    MapConstructor and XSLT30 MapExpr
           Product: XPath / XQuery / XSLT
           Version: Last Call drafts
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSLT 3.0
          Assignee: [hidden email]
          Reporter: [hidden email]
        QA Contact: [hidden email]

In XP31 the MapConstructor is defined as:

MapConstructor ::= "map" "{" (MapConstructorEntry ("," MapConstructorEntry)*)?
"}"
MapConstructorEntry ::= MapKeyExpr ":" MapValueExpr

In XSLT30 the MapExpr is defined as:

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

Functionally, these are equal. However, the XP31 production allows a space
between the keyword "map" and the opening curly (the production is not marked
ws-explicit), whereas XSLT30 does not allow such space.

I propose to allow that space in XSLT30 as well:

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

--
You are receiving this mail because:
You are the QA Contact for the bug.

Reply | Threaded
Open this post in threaded view
|

[Bug 27026] [XSLT30] EBNF incompatibility between XP31 MapConstructor and XSLT30 MapExpr

Bugzilla from bugzilla@jessica.w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=27026

--- Comment #1 from Michael Kay <[hidden email]> ---
I agree, we should allow the whitespace between "map" and "{", and it would do
no harm to align the way the BNF is written so that people can see that it's
the same.

--
You are receiving this mail because:
You are the QA Contact for the bug.

Reply | Threaded
Open this post in threaded view
|

[Bug 27026] [XSLT30] EBNF incompatibility between XP31 MapConstructor and XSLT30 MapExpr

Bugzilla from bugzilla@jessica.w3.org
In reply to this post by Bugzilla from bugzilla@jessica.w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=27026

Michael Kay <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Michael Kay <[hidden email]> ---
The WG accepted the proposal and it has been implemented.

--
You are receiving this mail because:
You are the QA Contact for the bug.