<?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>29182</bug_id>
          
          <creation_ts>2015-10-07 09:44:02 +0000</creation_ts>
          <short_desc>[XQ31] Whitespace rule in StringConstructor</short_desc>
          <delta_ts>2015-10-08 03:54:13 +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>XQuery 3.1</component>
          <version>Proposed Recommendation</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>https://www.w3.org/XML/Group/qtspecs/specifications/xquery-31/html/xquery-31.html#prod-xquery31-StringConstructor</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="Tim Mills">tim</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>123590</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2015-10-07 09:44:02 +0000</bug_when>
    <thetext>It&apos;s not entirely clear from the grammar

[177]   	StringConstructor	   ::=   	&quot;``[&quot; StringConstructorContent &quot;]``&quot;

[178]   	StringConstructorContent	   ::=   	StringConstructorChars (StringConstructorInterpolation StringConstructorChars)*

[179]   	StringConstructorChars	   ::=   	(Char* - (Char* (&apos;`{&apos; | &apos;]``&apos;) Char*))  /* ws: explicit */

whether the whitespace in 

``[ ]``

``[ hello ]``

``[ `{ $x }` ]``

forms part of the constructed string, since the ws: explicit rule isn&apos;t applying to production [177].

[Definition: Whitespace and Comments function as symbol separators. For the most part, they are not mentioned in the grammar, and may occur between any two terminal symbols mentioned in the grammar, except where that is forbidden by the /* ws: explicit */ annotation in the EBNF, or by the /* xgc: xml-version */ annotation.]

If I&apos;m not mistaken, whitespace or comments may appear between the terminal symbols &quot;``[&quot; and Char.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>123605</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2015-10-08 03:54:13 +0000</bug_when>
    <thetext>Whoops! Fixed. (I&apos;ve changed the grammar file so that the productions for StringConstructor and StringConstructorContent will be marked &quot;ws:explicit&quot; the next time the XQ31 spec is built.)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>