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=2951

*** shadow/2951 Wed Aug  1 11:34:48 2001
--- shadow/2951.tmp.24621       Wed Aug  1 11:34:48 2001
***************
*** 0 ****
--- 1,63 ----
+ +============================================================================+
+ | xsltc fails conf test output10 not disabling output escaping of value assi |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 2951                        Product: XalanJ2                 |
+ |       Status: NEW                         Version: CurrentCVS              |
+ |   Resolution:                            Platform: All                     |
+ |     Severity: Normal                   OS/Version: All                     |
+ |     Priority: Other                     Component: org.apache.xalan.xsltc  |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: [EMAIL PROTECTED]                                     |
+ |  Reported By: [EMAIL PROTECTED]                                          |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ Conf test output10 is very similar to output09 (which passes). The difference is
+ that text for which output escaping is to be disabled is retreived by a value-of 
+ and assigned to a variable. I checked and the text returned by the value-of is
+ not escaped, which is correct. The incorrect escaping, given the attempt to
+ disable escaping, occurs when the text is assigned to the variable.
+ 
+ Expected Ouput
+ ==============
+ <?xml version="1.0" encoding="UTF-8"?>
+ <out><P>&nbsp;</P></out>
+ 
+ 
+ Obtained Output
+ ===============
+ <?xml version="1.0" encoding="utf-8" ?>
+ <out>&lt;P&gt;&amp;nbsp;&lt;/P&gt;</out>
+ 
+ XSL
+ ===
+ <?xml version="1.0"?>
+ <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version="1.0">
+   <xsl:output method="xml"/>
+ 
+   <!-- FileName: OUTP10 -->
+   <!-- Document: http://www.w3.org/TR/xslt -->
+   <!-- DocVersion: 19991116 -->
+   <!-- Section: 7.6.1 -->
+   <!-- Purpose: test for disabling output escaping in a variable with
+ xsl:value-of -->
+ 
+ <xsl:template match="/">
+   <xsl:variable name="foo">
+     <xsl:value-of select="doc/foo" disable-output-escaping="yes"/>
+   </xsl:variable>
+   <out>
+     <xsl:copy-of select="$foo"/>
+   </out>
+ </xsl:template>
+ 
+ </xsl:stylesheet>
+ 
+ XML
+ ===
+ <?xml version="1.0"?>
+ <doc>
+   <foo><![CDATA[<P>&nbsp;</P>]]></foo>
+ </doc>
\ No newline at end of file

Reply via email to