[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] How to get   in HTML


Subject: RE: [xsl] How to get   in HTML
From: "Amuchastegui, Maria" <Maria.Amuchastegui@xxxxxxxxxxx>
Date: Wed, 7 Jan 2004 13:50:25 -0500

I use &#160; and specify the character set ISO-8859-1.

Or you can use the following unicode characters:

tab ---------------------->      <xsl:text>&#x9;</xsl:text>
newline------------------->      <xsl:text>&#xA;</xsl:text>
Carraige Return----------->      <xsl:text>&#xD;</xsl:text>
space -------------------->      <xsl:text>&#x20;</xsl:text>non breaking
space( nbsp;)-----> <xsl:text>&#xA0;</xsl:text>

-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Jiang, Peiyun
Sent: January 7, 2004 1:23 PM
To: 'xsl-list@xxxxxxxxxxxxxxxxxxxxxx'
Subject: [xsl] How to get &nbsp; in HTML


I was trying to get &nbsp; in my HTML using XSLT. I tried various tricks,
but it's not working.

Please help.

--------------------
I was trying to generate some HTML like this:

<tr>
<td>&nbsp;&nbsp;Put two spaces before text</td>
</tr>

I can just output two spaces before the text like this:
<tr>
<td>  Put two spaces before text</td>
</tr>
They will be ignored by browser. The entity seems to work.
--------------------

Thanks.

Peiyun

 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
Keywords