This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problems rendering nbsp entity


> In the past when I wanted to render a non blanking space when using XSL to
> render HTML I have just used the entity  

Note   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  .

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  
> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]