RE: Using   in Stylesheets

Subject: RE: Using   in Stylesheets
From: "James Lynn" <jiml@xxxxxxx>
Date: Mon, 4 Dec 2000 17:03:29 -0000
One thing to be careful about - we've had problems with some Mac browsers
deciding to display character &#160; as a cruciform rather than as a hard
space.

I've resorted to the following (which works when output format is HTML):

<xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>

Which resolves to &nbsp; in the output.

This isn't a good solution to use if you want your output well-formed, but
with the 'html' output format it works for me (MSXML3).

Jim Lynn
http://www.h2g2.com

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxx]On Behalf Of G. Ken Holman
> Sent: 01 December 2000 19:48
> To: xsl-list@xxxxxxxxxxxxxxxx
> Subject: Re: Using &nbsp; in Stylesheets
>
>
> At 00/12/01 16:53 +0000, David Carlisle wrote:
>
> > > "<!DOCTYPE xsl:stylesheet [<!ENTITY nbsp "&#160;">]>"
> >
> >Why bother?
>
> Legibility and maintenance of the stylesheet.
>
> For this reason I have been using internal parsed general
> entities for this
> and others in many of my stylesheets since day one.
>
> ............ 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.
> Book: Practical Transformation Using XSLT and XPath ISBN1-894049-05-5
> Article:          What is XSLT? http://www.xml.com/pub/2000/08/holman
> Next public instructor-led training:        2000-12-03/04,2001-01-27,
> -             2001-02-21,2001-02-27/03-01,2001-03-05/07,2001-04-06/07
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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


Current Thread