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

*** shadow/2578 Wed Jul 11 09:01:16 2001
--- shadow/2578.tmp.10368       Wed Jul 11 09:01:16 2001
***************
*** 0 ****
--- 1,48 ----
+ +============================================================================+
+ | xsltc ignores &#xa in literal result element (conditional01)               |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 2578                        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                                   |
+ XSTLC fails test conditional01 because it ignores the line feed character entity
+ in the following template:
+ 
+ <xsl:template match="/doc">
+   <out>
+     <xsl:for-each select="person">
+       <xsl:choose>
+         <xsl:when test="sex='M'">&#xa;Male: </xsl:when>
+         <xsl:when test="sex='F'">&#xa;Female: </xsl:when>
+         <xsl:otherwise>&#xa;Who knows?: </xsl:otherwise>
+       </xsl:choose>
+       <xsl:value-of select="name"/>
+     </xsl:for-each>
+   </out>
+ </xsl:template>
+ 
+ I tried &#xA; and it was ignored as well. But if you enclose 
+ it in an <xsl:text> element, the line feed does get output.
+ 
+ Expected Output
+ ===============
+ <?xml version="1.0" encoding="UTF-8"?>
+ <out>
+ Male: John
+ Female: Jane
+ Who knows?: Hermaphrodite
+ Who knows?: Prince</out>
+ 
+ Actual Output
+ =============
+ <?xml version="1.0" encoding="utf-8" ?>
+ <out>Male: JohnFemale: JaneWho knows?: HermaphroditeWho knows?: Prince</out>

Reply via email to