This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: forcing a carriage return, line feed


> 
> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]