RE: HTML output with non visible line breaks

Subject: RE: HTML output with non visible line breaks
From: Mike Brown <mbrown@xxxxxxxxxxxxx>
Date: Tue, 21 Dec 1999 10:29:26 -0700
Guy Pirostsky wrote:
> How can I create output that preserves non visible line 
> breaks (from the Stylesheet )?

Whitespace in the stylesheet that does not appear in the contents of
xsl:text elements is stripped before processing, according to the XSLT spec.
If using the top-level element <xsl:output method="html" indent="yes"/> does
not give you the results you want, you can add <xsl:text>&#10;</xsl:text> to
insert a linefeed character where desired. Try the indent attribute first
though, and remember that whitespace has significance in HTML as a word
separator, so it's not always desirable to have "pretty" HTML.


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


Current Thread