xsl-list
[Top] [All Lists]

RE: How to get   in HTML

2004-01-07 11:50:25
I use   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(_at_)lists(_dot_)mulberrytech(_dot_)com
[mailto:owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com]On Behalf Of 
Jiang, Peiyun
Sent: January 7, 2004 1:23 PM
To: 'xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com'
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



<Prev in Thread] Current Thread [Next in Thread>