<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>22760</bug_id>
          
          <creation_ts>2013-07-22 22:28:25 +0000</creation_ts>
          <short_desc>EBNF Production of override of ItemType and MapType</short_desc>
          <delta_ts>2013-08-01 15:11:50 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XPath / XQuery / XSLT</product>
          <component>XSLT 3.0</component>
          <version>Member-only Editors Drafts</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Abel Braaksma">abel.braaksma</reporter>
          <assigned_to name="Michael Kay">mike</assigned_to>
          
          
          <qa_contact name="Mailing list for public feedback on specs from XSL and XML Query WGs">public-qt-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>91098</commentid>
    <comment_count>0</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2013-07-22 22:28:25 +0000</bug_when>
    <thetext>Currently, the following is written in the working draft:

[101] ItemType ::= ... | MapType
[102] MapType  ::= &apos;map&apos; &apos;(&apos; ( &apos;*&apos; | (AtomicOrUnionType &apos;,&apos; SequenceType) &apos;)&apos;

[69] ItemType ::= ...
[109] MapType ::= ...

(rationale: [69] is the current number for ItemType, [109] is the first available free number).

In addition (1), I think it is better to repeat the current definition for ItemType to avoid potential confusion:

[69] ItemType ::= KindTest 
                  | (&quot;item&quot; &quot;(&quot; &quot;)&quot;) 
                  | FunctionTest 
                  | AtomicOrUnionType 
                  | ParenthesizedItemType
                  | MapType

In addition (2), perhaps it is better to split MapType into GenericMapType and TypedMapType, which I think aligns better with current practice for EBNF, and it works for better reference and easier parsing of the EBNF:

[109] MapType        ::= &apos;map&apos; &apos;(&apos; (GenericMapDecl | TypedMapDecl) &apos;)&apos;
[110] GenericMapDecl ::= &apos;*&apos;
[111] TypedMapDecl   ::= AtomicOrUnionType &apos;,&apos; SequenceType</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91472</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2013-07-31 19:51:09 +0000</bug_when>
    <thetext>I have tidied up the production rules, subject to constraints imposed by the technology.

I&apos;m reluctant to do any substantial refactoring of the syntax as these rules are about to be absorbed into the XPath grammar.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>