<?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>29405</bug_id>
          
          <creation_ts>2016-01-29 23:46:32 +0000</creation_ts>
          <short_desc>[QT3] K-CodepointToStringFunc-8</short_desc>
          <delta_ts>2016-04-29 08:21:08 +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>Linux</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="Benito van der Zander">benito</reporter>
          <assigned_to name="O&apos;Neil Delpratt">oneil</assigned_to>
          <cc>abel.braaksma</cc>
    
    <cc>josh.spiegel</cc>
    
    <cc>mike</cc>
    
    <cc>tim</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>124747</commentid>
    <comment_count>0</comment_count>
    <who name="Benito van der Zander">benito</who>
    <bug_when>2016-01-29 23:46:32 +0000</bug_when>
    <thetext>The test K-CodepointToStringFunc-8 calls codepoints-to-string(8) and             accepts &lt;assert-string-value&gt;&amp;amp;#x8;&lt;/assert-string-value&gt;

But that string seems doubly escaped. &amp;#x8; alone would escape a single 8 codepoint character</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>124748</commentid>
    <comment_count>1</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2016-01-30 01:51:32 +0000</bug_when>
    <thetext>I agree that the assert-string-value is incorrect and since the XML document containing the test is XML 1.0 it cannot be made correct. 

I think the test should probably be split in two: 

1) one with an XML 1.1 dependency with an XPath test like string-to-codepoints(.) = 8, or a serialization-matches test.

2) and one without the XML 1.1 dependency testing for FOCH0001.

Possibly the test typically succeeds most of the time because XML 1.0 is used with processors unless the dependency is set in the test. In such cases the FOCH0001 should always throw.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>124759</commentid>
    <comment_count>2</comment_count>
    <who name="Benito van der Zander">benito</who>
    <bug_when>2016-01-30 09:57:49 +0000</bug_when>
    <thetext>
&gt;2) and one without the XML 1.1 dependency testing for FOCH0001.

And with an XML 1.0 dependency</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>124764</commentid>
    <comment_count>3</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2016-01-30 21:38:55 +0000</bug_when>
    <thetext>&gt; And with an XML 1.0 dependency
Such dependency does not exist, it is a minimum requirement to support XML 1.0.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>124774</commentid>
    <comment_count>4</comment_count>
    <who name="Benito van der Zander">benito</who>
    <bug_when>2016-01-31 19:43:33 +0000</bug_when>
    <thetext>There is one:

&lt;dependency type=&quot;xml-version&quot; value=&quot;1.0&quot;/&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>124776</commentid>
    <comment_count>5</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2016-01-31 23:20:18 +0000</bug_when>
    <thetext>(In reply to Benito van der Zander from comment #4)
&gt; There is one:
&gt; 
&gt; &lt;dependency type=&quot;xml-version&quot; value=&quot;1.0&quot;/&gt;
Interesting. I just did a search and it is used 40x. Funny, never noticed it before. Looking at those tests I see how it is supposed to have meaning (i.e., should run on 1.0, not 1.1), though the more logical choice imho would be:

&lt;dependency type=&quot;xml-version&quot; value=&quot;1.1&quot; satisfies=&quot;false&quot;/&gt;

Tx for pointing that out and sorry for the clutter...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125913</commentid>
    <comment_count>6</comment_count>
    <who name="O&apos;Neil Delpratt">oneil</who>
    <bug_when>2016-04-19 12:04:26 +0000</bug_when>
    <thetext>I have split the tests according to comment #1.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125941</commentid>
    <comment_count>7</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2016-04-20 13:26:51 +0000</bug_when>
    <thetext>Would there be an objection to testing the result without using seialization-matches, as this test isn&apos;t really about serialization?

For historical reasons, in our test harness we compare using canonical XML (as per the old XQTS), which happens not to escape this character.

I fear if we change our test harness, we may end up having to file bug after bug about whitespace.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125942</commentid>
    <comment_count>8</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2016-04-20 13:44:53 +0000</bug_when>
    <thetext>Yes it&apos;s always good practice to avoid using serialization-matches assertions except when you&apos;re actually testing serialization.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>126172</commentid>
    <comment_count>9</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2016-04-26 21:34:58 +0000</bug_when>
    <thetext>Changed the expected result to

&lt;assert&gt;string-to-codepoints($result) eq 8&lt;/assert&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>126250</commentid>
    <comment_count>10</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2016-04-28 08:11:24 +0000</bug_when>
    <thetext>Now updated.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>126292</commentid>
    <comment_count>11</comment_count>
    <who name="Josh Spiegel">josh.spiegel</who>
    <bug_when>2016-04-28 18:44:30 +0000</bug_when>
    <thetext>I still see:

   &lt;test-case name=&quot;K-CodepointToStringFunc-8a&quot;&gt;
       ...
       &lt;assert-string-value&gt;&amp;#8;&lt;/assert-string-value&gt;

I am changing it to:

       &lt;assert&gt;string-to-codepoints($result) eq 8&lt;/assert&gt;

Currently I am unable to parse the catalog file with my 1.0 parser.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>126295</commentid>
    <comment_count>12</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2016-04-29 08:21:08 +0000</bug_when>
    <thetext>(In reply to Josh Spiegel from comment #11)
&gt; Currently I am unable to parse the catalog file with my 1.0 parser.

Sorry Josh - thanks for fixing it.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>