[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Problems rendering nbsp entity

Subject: Re: Problems rendering nbsp entity
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 26 Sep 2002 09:41:15 +0100
nbsp entity reference
> 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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.