https://issues.apache.org/bugzilla/show_bug.cgi?id=39492





--- Comment #5 from Kevin Cunnane <[email protected]>  2009-07-20 06:11:12 
PST ---
I experienced this problem too. The actual issue is incorrect behaviour in the
br-replace template. This sets disable-output-escaping to "no", which unescapes
all xml tags, not just the "br" tags. 
After a quick google search on correct methods for br-replace in xslt I found
the following:

<!-- Correct br replace algorithm -->
<xsl:template name="br-replace">
 <xsl:param name="word"/>
 <xsl:choose>
   <xsl:when test="contains($word,'&#10;')">
     <xsl:value-of select="substring-before($word,'&#10;')"/>
     <br/>
     <xsl:call-template name="br-replace">
       <xsl:with-param name="word" select="substring-after($word,'&#10;')"/>
     </xsl:call-template>
   </xsl:when>
   <xsl:otherwise>
     <xsl:value-of select="$word"/>
   </xsl:otherwise>
 </xsl:choose>
</xsl:template>

This seems to be a standard solution. Replacing the old br-replace template
with this one solved the problem for me.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Reply via email to