<?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>22434</bug_id>
          
          <creation_ts>2013-06-24 09:18:27 +0000</creation_ts>
          <short_desc>[FO30] Whitespace in variable markers</short_desc>
          <delta_ts>2015-01-03 00:15:42 +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 &amp; XPath 3 Test Suite</component>
          <version>Candidate Recommendation</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</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="Tim Mills">tim</reporter>
          <assigned_to name="O&apos;Neil Delpratt">oneil</assigned_to>
          <cc>mike</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>89745</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2013-06-24 09:18:27 +0000</bug_when>
    <thetext>F&amp;O3.0 states in 9.8.4.1 The picture string

&quot;Whitespace within a variable marker is ignored.&quot;

Since the variable marker may contain a &quot;first presentation modifier&quot;, which may be

&quot;... any format token permitted as a primary format token in the second argument of the fn:format-integer function&quot;

and whitespace might form a part of such a primary format token (e.g. as a grouping separator), is this correct?

I&apos;m not sure there are any tests covering whitespace in the picture string, such as the following:

format-date(xs:date(&apos;2034-01-02&apos;), &quot;[ Y 9 999  ]&quot;)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89748</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2013-06-24 11:48:40 +0000</bug_when>
    <thetext>Thanks for reporting it. Given that the same text was present in XSLT 2.0, I&apos;m inclined to say that we should take it to mean what it says: whitespace is stripped from the variable marker before you do anything else, which means using space as a grouping separator is not possible. That&apos;s not the spec I would write if I were writing it today, but it&apos;s hard to argue that it&apos;s unclear or contradictory.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89751</commentid>
    <comment_count>2</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2013-06-24 13:02:22 +0000</bug_when>
    <thetext>In that case, I&apos;ll convert it to a bug against the test suite as a reminder that whitespace in variable markers appears not to be covered.

If you concur that

format-date(xs:date(&apos;2034-01-02&apos;), &quot;[ Y 9 999  ]&quot;)

is

&apos;2034&apos;

I&apos;ll add it to the test suite in due course.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>116732</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2015-01-03 00:15:42 +0000</bug_when>
    <thetext>I&apos;ve added test case format-date-028 to test this condition.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>