[xsl] Is it possible to get " " in output rather than the encoded character?

Subject: [xsl] Is it possible to get " " in output rather than the encoded character?
From: "Steven Reddie" <smr@xxxxxxxxxxxxxx>
Date: Wed, 19 May 2004 14:26:04 +1000
Hi All,

I'm fairly new to XML and am trying to generate an HTML file from XML/XSL.
I've done a fair bit of searching on this issue, but there are so many other
"&nbsp;" questions that I've been unable to find anything helpful.

If I load the xml file (which references the xsl) from within IE6 the
"&#160;" is displayed as I'd expect (whitespace).  However, when using the
Microsoft .NET XslTransform, outputting to stdout and redirected to a file I
get an ASCII character of value 0xff in the file.  What I'd really like is
to get the unencoded "&nbsp;" in the file so that it looks like typical
HTML.  I've tried "&amp;nbsp" but it comes out unchanged.

If this is possible I'd really appreciate some pointers.

On a similar note, is there some escape mechanism such as "\&nbsp" or
"&&nbsp" (I realise those aren't valid).

Regards,

Steven

Current Thread