RE: [xsl] Line end conversion.

Subject: RE: [xsl] Line end conversion.
From: Jarno.Elovirta@xxxxxxxxx
Date: Tue, 2 Dec 2003 16:24:43 +0200

> 	I have an odd little problem. I want to match all 
> linefeeds with a given 
> element's content, and convert them to "\n". Does anybody 
> know of a good 
> way to do so?
> 	In other words...
> <element>This is a phrase with a line end.
> It's very frustrating.</element>
> 	...becomes...
> <element>This is a phrase with a line end.\n\nIt's very 
> frustrating.</element>

Write a recursive template. The FAQ has an entry for this <>, but I recommend writing the stylesheet yourself for educational purposes.


Jarno - Funker Vogt: The International Killer

 XSL-List info and archive:

Current Thread