PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT
ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW
AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE
DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL
BE LOST SOMEWHERE.

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

*** shadow/3005 Mon Aug  6 13:04:28 2001
--- shadow/3005.tmp.8059        Mon Aug  6 13:04:28 2001
***************
*** 0 ****
--- 1,85 ----
+ +============================================================================+
+ | xsltc fails output28 and output42 - problems with cdata-section-elements p |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 3005                        Product: XalanJ2                 |
+ |       Status: NEW                         Version: 2.0.0                   |
+ |   Resolution:                            Platform: Sun                     |
+ |     Severity: Normal                   OS/Version: Solaris                 |
+ |     Priority: Other                     Component: org.apache.xalan.xsltc  |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: [EMAIL PROTECTED]                                     |
+ |  Reported By: [EMAIL PROTECTED]                                          |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ Both of these tests reflect mishandling of cdata-section-elements.
+ 
+ Expected Output (for 28)
+ ===============
+ <?xml version="1.0" encoding="US-ASCII"?>
+ <out><example><![CDATA[this character: ]]>&#10052;<![CDATA[ is a
+ snowflake.]]></example></out>
+ 
+ Obtained Ouput (for 28)
+ =======================
+ <?xml version="1.0" encoding="US-ASCII" ?>
+ <out><example><![CDATA[this character: ]]><![CDATA[?]]><![CDATA[ is a
+ snowflake.]]></example></out>
+ 
+ XSL for ouput28
+ ===============
+ <?xml version="1.0"?> 
+ <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version="1.0">
+   <xsl:output cdata-section-elements="example" encoding="US-ASCII"/>
+ 
+   <!-- FileName: OUTP28 -->
+   <!-- Document: http://www.w3.org/TR/xslt -->
+   <!-- DocVersion: 19991116 -->
+   <!-- Section: 16.1 XML Output Method-->
+   <!-- Purpose: Result tree here defaults to XML
+        Test for cdata-section-elements with nonrepresentable character. -->
+ 
+ <xsl:template match="doc">
+   <out>
+     <example>this character: &#10052; is a snowflake.</example>
+   </out>
+ </xsl:template>
+ 
+ </xsl:stylesheet> 
+ 
+ Expected Output for output42
+ ============================
+ <?xml version="1.0" encoding="UTF-8"?>
+ <example><![CDATA[<foo>]]></example>
+ <example><![CDATA[>>>HELLO<<<]]></example>
+ <test><![CDATA[>>>HELLO<<<]]></test>
+ 
+ Obtained Output for output42
+ ============================
+ <?xml version="1.0" encoding="utf-8" ?>
+ <example><![CDATA[<]]><![CDATA[foo>]]></example>
+ 
+<example><![CDATA[>]]><![CDATA[>]]><![CDATA[>]]><![CDATA[HELLO]]><![CDATA[<]]><![CDATA[<]]><![CDATA[<]]></example>
+ <test><![CDATA[>>>HELLO<<<]]></test>
+ 
+ XSL for output42
+ ================
+ <?xml version="1.0"?> 
+ <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version="1.0">
+ <xsl:output method="xml" cdata-section-elements="example test"/>
+ 
+   <!-- FileName: outp42 -->
+   <!-- Document: http://www.w3.org/TR/xslt -->
+   <!-- DocVersion: 19991116 -->
+   <!-- Section: 16.1 XML Output Method -->
+   <!-- Purpose: Test of cdata-section-elements processing. -->
+ 
+ <xsl:template match="/">
+         <example>&lt;foo></example><xsl:text>&#010;</xsl:text>
+        
+ <example>&gt;&gt;&gt;HELLO&lt;&lt;&lt;</example><xsl:text>&#010;</xsl:text>
+         <test><![CDATA[>>>HELLO<<<]]></test>
+ </xsl:template>
+  
+ </xsl:stylesheet>
\ No newline at end of file

Reply via email to