DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5325>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5325

xsltc failing copy-of on RTF in conf test copy26

           Summary: xsltc failing copy-of on RTF in conf test copy26
           Product: XalanJ2
           Version: 2.0.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: org.apache.xalan.xsltc
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


This looks like a serious regression. By mistake the "copy" 
tests were not being run, so we missing it.

copy26.xsl
----------
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; >

  <!-- FileName: copy26 -->
  <!-- Document: http://www.w3.org/TR/xslt -->
  <!-- DocVersion: 19991116 -->
  <!-- Section: 11.3 -->
  <!-- Creator: Bob Morris -->
  <!-- Purpose: Should be able to copy the same tree fragment twice in
succession. -->

<xsl:template match="/">
  <xsl:variable name ="theNode" select="//inc/node4"/>
  <out>
    <xsl:copy-of select="$theNode"/>
    <xsl:copy-of select="$theNode"/>
  </out>
</xsl:template>

</xsl:stylesheet> glrr 288 =>

copy26.xml
----------
<?xml version="1.0" encoding="UTF-8"?>
<inc>
  <list>
    <node1>foo1</node1>
    <node2>foo2</node2>
    <node3>foo3</node3>
  </list>
  <node1>bar1</node1>
  <node2>bar2</node2>
  <node4 ax="by+c">bar4</node4>
</inc> 

Here's a test session comparing the output from 
SAXON, XT, Xalan, and XSLTC

Running saxon on copy26
<?xml version="1.0" encoding="utf-8"?><out><node4 ax="by+c">bar4</node4><node4
ax="by+c">bar4</node4></out>

Running xt on copy26
<?xml version="1.0" encoding="utf-8"?>
<out><node4 ax="by+c">bar4</node4><node4 ax="by+c">bar4</node4></out>

Running xalan on copy26
<?xml version="1.0" encoding="UTF-8"?>
<out><node4 ax="by+c">bar4</node4><node4 ax="by+c">bar4</node4></out>


Running XSLTC with Xerces Parser on copy26
<?xml version="1.0" encoding="UTF-8" ?>
<out/>

Reply via email to