[Home] [By Thread] [By Date] [Recent Entries]

Subject: RE: 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
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member