Subject: RE: [xsl] transforming to breaks From: "Koes, Derrick" <Derrick.Koes@xxxxxxxxxxxxxxxx> Date: Tue, 25 Mar 2003 11:31:40 -0500 |
Thanks Jarno! -----Original Message----- From: Jarno.Elovirta@xxxxxxxxx [mailto:Jarno.Elovirta@xxxxxxxxx] Sent: Tuesday, March 25, 2003 10:34 AM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: RE: [xsl] transforming to breaks > I have a node like <nodeName>blah blah more blah > blah</nodeName>. > I wish to transform this to html, using <BR></BR> for the carriage > return/linefeed combo. > > How can I do this? Recursive template, e.g. template "changer" param "text" choose when contains($text, "
") value-of substring-before($text, "
") <BR></BR> call-template "changer> with-param "text" substring-after($text, "
") otherwise value-of $text The XML parser changes sequences into single , so you just need to change LINE FEED characters. Cheers, Jarno - Linnunradan käsikirja liftareille: Osa 14 XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list This electronic transmission is strictly confidential to Smith & Nephew and intended solely for the addressee. It may contain information which is covered by legal, professional or other privilege. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] transforming to breaks, Craig Kattner | Thread | RE: [xsl] String manipulation & Lin, Jarno . Elovirta |
RE: [xsl] String manipulation & Lin, Américo Albuquerque | Date | Re: [xsl] Is <!DOCTYPE...> tailora, David Carlisle |
Month |