This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Text output and whitespace
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] Text output and whitespace
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Sun, 29 Jul 2001 08:54:28 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
> When using output="text", what level of control do I have over the
> whitespacing?
You have total control, except possibly for the choice of LF or CRLF for
line endings. The only thing is, that exercising that control can be
difficult. The basic rule is that whitespace is only written to the output
file if you copy it there, either from the stylesheet or from the source
document: usually, the task is to prevent whitespace being copied when you
don't want it. The two useful tools are <xsl:strip-space elements="*"/> and
<xsl:text>
Mike Kay
Software AG
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list