Hi,
Is there a way to replace line breaks in xsl with <br> tags?
Here is my template:
I need to replace all the line breaks in 'message' with <br> tags, thanks alot!
Jon
Is there a way to replace line breaks in xsl with <br> tags?
Here is my template:
Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="[URL unfurl="true"]http://www.w3.org/1999/XSL/Transform">[/URL]
<xsl:template match="/">
<xsl:choose>
<xsl:when test="count(root/child) > 0">
<xsl:for-each select="root/child">
<xsl:sort select="announcementid" order="descending"/>
<h2>
<xsl:value-of select="title" />
</h2>
<p class="announcements">
<xsl:value-of select="message" />
</p>
</xsl:for-each>
</xsl:when>
<xsl:otherwise>
There are currently no announcements available for this portal
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>
I need to replace all the line breaks in 'message' with <br> tags, thanks alot!
Jon