[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Trying to add a linebreak

Subject: Trying to add a linebreak
From: Jitt_Joynoosaeng@xxxxxxxxxxx
Date: Mon, 15 Jul 2002 11:51:41 -0500
xml 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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.