[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Trying to add a linebreak
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|