<?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>20027</bug_id>
          
          <creation_ts>2012-11-20 17:01:28 +0000</creation_ts>
          <short_desc>[XT3TS] avt-0701</short_desc>
          <delta_ts>2012-12-13 10:47:19 +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 Test Suite</component>
          <version>Working drafts</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows 3.1</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="Tim Mills">tim</reporter>
          <assigned_to name="Abel Braaksma">abel.online</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>78543</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2012-11-20 17:01:28 +0000</bug_when>
    <thetext>This test has the following assertions.

         &lt;all-of&gt;
            &lt;assert-xml&gt;&lt;![CDATA[&lt;out&gt;Printing.&lt;/out&gt;]]&gt;&lt;/assert-xml&gt;
            &lt;assert-message&gt;
               &lt;assert-xml&gt;&lt;![CDATA[AVT with value &apos;no&apos; in @terminate of xsl:message]]&gt;&lt;/assert-xml&gt;
            &lt;/assert-message&gt;
            &lt;assert-message&gt;
               &lt;assert-xml&gt;&lt;![CDATA[AVT with value &apos;no&apos; in @terminate of xsl:message]]&gt;&lt;/assert-xml&gt;
            &lt;/assert-message&gt;
         &lt;/all-of&gt;

The actual XML produced contains a whitespace text node before the &lt;out&gt; start tag.  

If we assume that assert-xml requires a valid XML document, then this whitespace will be discarded by canonicalization.  However, that means that the &lt;assert-xml&gt; for the messages cannot be correct - they contain only text.

If we assume that assert-xml can handle fragments, then the expected first assert-xml should include the whitespace, and we have to use a canonicalizer which can handle fragments (not defined by the XML Canonicalization 1.0 spec).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79971</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2012-12-11 22:29:49 +0000</bug_when>
    <thetext>I have removed the whitespace, which is not germane to the purpose of the test.

Also cleaned up whitespace issues in avt-0601.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80084</commentid>
    <comment_count>2</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2012-12-13 10:47:19 +0000</bug_when>
    <thetext>Confirmed fixed.  Thanks.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>