RE: Printing newline

Subject: RE: Printing newline
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Thu, 10 Feb 2000 14:00:02 -0800
At 00/02/10 11:29 -0700, Mike Brown wrote:
> Or <xsl:value-of select="&#xa;"/>

You mean <xsl:value-of select="'&#xa;'"/> :-)

I just use:


<xsl:text>&#xa;</xsl:text>

or if there are a lot of them in the file:

<!DOCTYPE xsl:stylesheet [
<!ENTITY nl "&#xa;"><!--new line-->
]>
...
   <xsl:text>&nl;</xsl:text>

or, for MSDOS text output I just redefine the entity:

<!ENTITY nl "&#xd;&#xa;">

....................... Ken


-- G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (Fax:-0995) Web site: XSL/XML/DSSSL/SGML services, training, libraries, products. Practical Transformation Using XSLT and XPath ISBN 1-894049-03-9 Next instructor-led training: 2000-02-27/28,2000-05-11/12,2000-05-15, - 2000-06-12,2000-06-13,2001-01-27


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



Current Thread