This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Welcome comments: White spaces in HTML pages from XSLT
- From: David Carlisle <davidc at nag dot co dot uk>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Thu, 6 Dec 2001 09:54:06 GMT
- Subject: Re: [xsl] Welcome comments: White spaces in HTML pages from XSLT
- References: <20011206032239.43195.qmail@web13604.mail.yahoo.com>
- Reply-to: xsl-list at lists dot mulberrytech dot com
> I ever posted the initial version in some other list
> and got some very informative feedback. I hope that
> gurus here can give some valuable comments and improve
> my understanding on the problem.
It's a better than the first version, but still it doesn't really say
what the "problem" is that is being addressed, or rather, why you think
there is a problem. If you use indent="no" in xsl:output then you have
complete control over all character data that is generated in the
result, either copied from the source or from the stylesheet.
Really there is very little difference in controlling which characters
get output whether they are white space or visible. certainly for
characters like 'nbsp' (#160) about which much of this document
is based, there is _no_ difference between ways to output that character
and ways to output, say, 'a'. There are some differences in outputting
real xml white space (#9, #10, #13, #32) but that only really requires
a comment about correct use of xsl:space.
David
_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list