I have a tag that contains a comment string. I want to be able to
search that string and look for a '#' and whenever I see this, I want
to add a line break <br>. I was trying to do it by the following code,
but found that the line break occurs ONLY after the first '#'. Can
anyone suggest a way I can make this work?
<xsl:variable name="certcomments" select="//cert_comments"/>
<xsl:if test="contains($certcomments,'#')">
<xsl:value-of
select="substring-before($certcomments,'#')"/><br></br>
<xsl:value-of select="substring-after($certcomments,'#')"/>
</xsl:if>
Thank you! Your help is much appreciated.
Jitt
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|