RE: [xsl] forcing a carriage return, line feed

Subject: RE: [xsl] forcing a carriage return, line feed
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Tue, 18 Sep 2001 13:27:32 +0100
> 
> In which way do you force CR/LF? What's the better, nicer, 
> safer method?
> 
I tend to use <xsl:text>&#xa;</xsl:text>.

Some people have recommended putting an XML entity in the stylesheet

<!ENTITY NL "<xsl:text>&#xa;</xsl:text>">

and then you can just write "&NL;" when you need a newline.

Mike Kay

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread