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=3691>.
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=3691

           Summary: xsltc fails conf test whitespace16 on whitespace chars
                    in <xsl:text> vs LREs
           Product: XalanJ2
           Version: 2.0.0
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: org.apache.xalan.xsltc
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Here's the dump of a test session showing the output from our four 
favorite XSLT processors. Xalan differs from the others on &#13; (carriage
return),
but otherwise, XSLTC's output differs from all the others.


Running saxon on whitespace16
<?xml version="1.0" encoding="utf-8"?><out> a. 
         , ,
                , 
                , 
    
                        <end>           This will not be stripped.      </end>,
        <end2/></out>

Running xt on whitespace16
<?xml version="1.0" encoding="utf-8"?>
<out> a. 
         , ,
                , 
                , 
    
                        <end>           This will not be stripped.      </end>,
        <end2/></out>

Running xalan on whitespace16
<?xml version="1.0" encoding="UTF-8"?>
<out> a. 
         , ,
                , 
    &#13;               , 
    
                        <end>           This will not be stripped.      </end>,
        <end2/></out>


Running XSLTC with Xerces Parser on whitespace16
<?xml version="1.0" encoding="utf-8" ?>
<out> a. 
         , ,    ,               , 
                        <end>           This will not be stripped.      </end>,
        <end2/></out>

 cat whitespace16.xsl
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version="1.0">

  <!-- FileName: whitespace16 -->
  <!-- Document: http://www.w3.org/TR/xslt -->
  <!-- DocVersion: 19991116 -->
  <!-- Section: 3.4 -->
  <!-- Creator: Paul Dick -->
  <!-- Purpose: This is a general test of whitespace handling.
    It verifies the handling of the special whitespace
    characters (space, tab, CR, LF) In different situations.
       1. within xsl:text where they should not be stripped,
       2. within LREs <end2> where they may be stripped. -->

<xsl:template match="/">
  <out>
        <xsl:text> a. <!-- This -->
         ,</xsl:text>
    <xsl:text>&#32;</xsl:text>, <!-- Contains space -->
    <xsl:text>&#09;     </xsl:text>, <!-- Contains tab and 1 tab -->
    <xsl:text>&#13;             </xsl:text>, <!-- Contains CR and 2 tabs -->
    <xsl:text>&#10;                     </xsl:text> <!-- Contains NL and 3 tabs
-->




         


        <end>           This will not be stripped.      </end>,
        <end2>&#32;     &#09;   &#13;   &#10;     </end2>
  </out>
</xsl:template>

</xsl:stylesheet>

cat whitespace16.xml
<?xml version="1.0"?> 
<doc/>

Reply via email to