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 
 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'">
Male: </xsl:when> + <xsl:when test="sex='F'">
Female: </xsl:when> + <xsl:otherwise>
Who knows?: </xsl:otherwise> + </xsl:choose> + <xsl:value-of select="name"/> + </xsl:for-each> + </out> + </xsl:template> + + I tried 
 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>
