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

*** shadow/3003 Mon Aug  6 07:24:47 2001
--- shadow/3003.tmp.4396        Mon Aug  6 07:24:48 2001
***************
*** 0 ****
--- 1,50 ----
+ +============================================================================+
+ | xsltc fails conf test ouput37 escaping & in an attribute value             |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 3003                        Product: XalanJ2                 |
+ |       Status: NEW                         Version: 2.0.0                   |
+ |   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                                   |
+ According to Section B.7.1 HTML 4.0 Recommendation, an "&" should not be escaped
+ when occuring in an attribute value. xsltc incorrectly escapes the & in an
+ attribute value in HTML output. 
+ 
+ The expected output should have
+ 
+     <Body bgcolor="&{randomrbg};"></Body>
+ 
+ Whereas, xsltc's output has
+ 
+     <Body bgcolor="&amp;{randomrbg};"></Body>
+ 
+ XSL
+ ===
+ <?xml version="1.0"?> 
+ <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version="1.0">
+   <xsl:output method="html" 
+     doctype-public="-//W3C//DTD HTML 4.0 Transitional"/>
+ 
+   <!-- FileName: OUTP37 -->
+   <!-- Document: http://www.w3.org/TR/xslt -->
+   <!-- DocVersion: 19991116 -->
+   <!-- Section: 16.2 HTML Output Method -->
+   <!-- Purpose: "&" should not be escaped when occuring in an attribute value
+      immediately followed by a "{". See to Section B.7.1 HTML 4.0
+ Recommendation. -->
+ 
+ <xsl:template match="/">
+   <HTML>
+     <Body bgcolor='&amp;{{randomrbg}};'/>
+   </HTML>
+ </xsl:template>
+ 
+ </xsl:stylesheet>
\ No newline at end of file

Reply via email to