tags:

views:

142

answers:

4

How can I display   in Mozilla using XSL. I've tried CDATA but that didn't work.

I am using Firefox 3.5.5

A: 

Use the character entity  .

Oded
Thanks - fat fingers :(
Oded
+5  A: 

As you can't place an HTML character entity directly into your XSLT source (except for <, >, ', " and &) you will need to go with numerical entities. So you should to use:

 
Rubens Farias
A: 

Try using   instead of  .

Anthony
+1  A: 

If you must output a real  , the common solution in XSLT is

<xsl:value-of select="'&amp;nbsp;'" disable-output-escaping="yes" />
Tomalak
...but you shouldn't and that won't work in Firefox - https://bugzilla.mozilla.org/show_bug.cgi?id=98168
Nickolay
That Firefox has a bug in this regard is hardly an argument against the method. ;-)
Tomalak
The arguments are listed _in_ the bug. // and it is an argument against the method when the question specifically mentions Firefox :p
Nickolay