Re: [xsl] Problems rendering nbsp entity

Subject: Re: [xsl] Problems rendering nbsp entity
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 26 Sep 2002 09:41:15 +0100
> In the past when I wanted to render a non blanking space when using XSL to
> render HTML I have just used the entity &#160;

Note &#160; isn't an entity (reference) it is a character reference.

> However for some reason this does not work this time
> when using that parser.  

Either you have done something wrong or you are using a very broken
parser. Every XML parser will accept &#160;.

Most likely you have requested (or got by default) your output in some
encoding (such as utf8) thatyour html renderer is not understanding.

You should be able to fix any modern browser to detect the encoding, or
output your html in some other encoding such as iso-8859-1

> Is there a way when using MSXML to get it to return the actual entity &nbsp;
> in the rendered HTML instead of some space character.  For example instead
> of <td> </td> have it render this <td>&nbsp;</td>
> The problem as many know with using the entity &nbsp; as a 

whether or not a system uses an entity reference, a character
refererence or the charaacter itself is not directly controllable from
XSLT. (Some systems have extensions to support that).

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


Current Thread