<?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>30006</bug_id>
          
          <creation_ts>2016-11-16 21:41:42 +0000</creation_ts>
          <short_desc>[XP31] Ignorable whitespace (probably editorial)</short_desc>
          <delta_ts>2016-12-06 16:44:34 +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>XPath 3.1</component>
          <version>Candidate Recommendation</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</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="Jonathan Robie">jonathan.robie</assigned_to>
          <cc>jmdyck</cc>
          
          <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>128193</commentid>
    <comment_count>0</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2016-11-16 21:41:42 +0000</bug_when>
    <thetext>When trying to find out whether the production for cast as required a space between &quot;cast&quot; and &quot;as&quot; (I know it requires one, just wanted to see it written) I went through the following:

1) Reading section A.1 EBNF, which points to A.1.1 Notation, and hit a dead end.

2) Searched for &quot;whitespace rules&quot; and came to A.2.4 whitespace Rules, here ignorable whitespace is discussed which suggests (but does not specify) that whitespace is not required, because of the term &quot;ignorable&quot; and &quot;may occur between terminals&quot;.

3) At this point I decided to lookup XML 1.0 EBNF whether that had anything conclusion. A dead end again.

4) Eventually I found A.2.2 Terminal Delimitation, where the correct rules are explained.

I was wondering whether 

I) A.1.1, in its section on terminals, could point forward to the section on terminal delimitation (which is *not* in the same main section on EBNF, I mean, not under A.1).

II) We could make the language under *ignorable whitespace* somewhat explicit to the fact that while whitespace is ignorable, it is often required to separate two symbols, even though we don&apos;t have ws-explicit everywhere.

III) With, or as alternative to II, add a backward link under A.2.4 on ignorable whitespace to A.2.2, to signify it is often *not* ignorable.


Or basically anything that removes the confusion I felt today (I am not saying the rules are wrong, I just think they are somewhat counter-intuitive or slightly lacking).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128288</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2016-12-06 05:52:06 +0000</bug_when>
    <thetext>Yeah, in my opinion, the lexical level is kind of a mess, editorially speaking. I raised some points here:
   https://lists.w3.org/Archives/Public/public-xsl-query/2016Mar/0036.html
but didn&apos;t get any interest.

I think we could do something along the lines you suggest.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128292</commentid>
    <comment_count>2</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2016-12-06 16:44:34 +0000</bug_when>
    <thetext>In today&apos;s telcon, we voted to close this without change to the specification.

It could be simplified, but it&apos;s not wrong, and most developers have been able to figure this out. We do not believe that this is worth doing at this point.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>