<?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>24049</bug_id>
          
          <creation_ts>2013-12-10 14:09:35 +0000</creation_ts>
          <short_desc>[XT3TS] Incorrect pattern in &quot;copy-1210&quot; test case</short_desc>
          <delta_ts>2015-05-06 21:15:30 +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 NT</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="Vitaliy">vitaliy.yudenkov</reporter>
          <assigned_to name="Abel Braaksma">abel.online</assigned_to>
          <cc>abel.braaksma</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>97393</commentid>
    <comment_count>0</comment_count>
    <who name="Vitaliy">vitaliy.yudenkov</who>
    <bug_when>2013-12-10 14:09:35 +0000</bug_when>
    <thetext>copy-1210 test case expected successful transformation result (not an error) (&lt;assert&gt;/out/rtf&lt;/assert&gt;).

At the same time in the test case &quot;xsl:copy&quot; instruction copies document node (context node) and tries to add namespace to it. It looks like template @match attribute should be updated to match &quot;doc&quot; instead of &quot;/&quot;.

  &lt;xsl:template match=&quot;/&quot;&gt;
    &lt;xsl:variable name=&quot;var1&quot;&gt;&lt;rtf/&gt;&lt;/xsl:variable&gt;
    &lt;out&gt;
      &lt;xsl:copy on-empty=&quot;$var1&quot;&gt;
        &lt;xsl:namespace name=&quot;n&quot;&gt;http://example.com/nnnnnnn&lt;/xsl:namespace&gt; 
      &lt;/xsl:copy&gt;  
    &lt;/out&gt;  
  &lt;/xsl:template&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114208</commentid>
    <comment_count>1</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2014-10-29 13:39:50 +0000</bug_when>
    <thetext>Fixed, see rev #765 in XT3 repository.

Note that some tests were assuming that on-empty should be evaluated when content is an empty PI instruction or an empty comment, text or attribute node. This is not true, on-empty has no effect in such cases, xsl:copy works only on element nodes (and possibly document nodes depending on resolution of bug 27189).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>120166</commentid>
    <comment_count>2</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2015-05-06 21:15:30 +0000</bug_when>
    <thetext>Was resolved &gt; 30 days ago, closing.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>