xsl-list
[Top] [All Lists]

RE: Line ends

2003-01-03 05:08:14
You need to establish why the line endings are there, then you can
consider how to change the stylesheet to avoid outputting them.
Whitespace generally comes from one of three sources (a) it is copied
from the source document, (b) it is copied from the stylesheet, (c) it
is added by using indent="yes" (which is the default with HTML output).
The remedy depends on the cause. Sometimes <xsl:strip-space> is the
answer, sometimes the normalize-space() function.

Michael Kay
Software AG
home: Michael(_dot_)H(_dot_)Kay(_at_)ntlworld(_dot_)com
work: Michael(_dot_)Kay(_at_)softwareag(_dot_)com 

-----Original Message-----
From: owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com 
[mailto:owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com] On Behalf Of 
James Lowther
Sent: 03 January 2003 09:01
To: XSL-List(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] Line ends


Hello list--

I am using Instant Saxon to transform XML to HTML and I 
notice that there are line end characters (&#xA;) in my 
output HTML. Is there something I can put in my XSL to tell 
the processor to ignore line ends in my source XML? Thanks.




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




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



<Prev in Thread] Current Thread [Next in Thread>