RE: [xsl] get an &nbsp in theoutput html

Subject: RE: [xsl] get an &nbsp in theoutput html
From: "Nestor Urquiza" <nestor.urquiza@xxxxxxxxxxxxxx>
Date: Fri, 4 Mar 2005 10:22:26 -0500
Thanks a lot!

-----Original Message-----
From: Michael Kay [mailto:mike@xxxxxxxxxxxx] 
Sent: Friday, March 04, 2005 4:09 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE: [xsl] get an &nbsp in theoutput html

This used to be a FAQ but it hasn't appeared so often recently.

&nbsp; is the way that human HTML authors like to write the Unicode
non-breaking-space character, hex A0. That's because the character isn't
available on a keyboard and can't be distinguished from an ordinary space
character when displayed by a text editor. But when you generate the HTML
automatically, you don't need to generate it as &nbsp;, you can just
generate the non-breaking-space character directly. The easiest way to do
that is to write it in your stylesheet as &#xA0;

Michael Kay
http://www.saxonica.com/  

> -----Original Message-----
> From: Nestor Urquiza [mailto:nestor.urquiza@xxxxxxxxxxxxxx] 
> Sent: 04 March 2005 00:18
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: [xsl] get an &nbsp in theoutput html
> 
> Hello everyone,
> I am an XSLT newbie, so I apologize if I am bothering you 
> with this. This is
> btw my second question to the list . let's see if I am luckier now ;-)
> This is the only way I found to insert an &nbsp; in my final 
> html. I would
> like to know a simpler way to do it
> Thanks in advance
> <xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>

Current Thread