xsl-list
[Top] [All Lists]

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

2004-05-18 21:26:04
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
" " questions that I've been unable to find anything helpful.

If I load the xml file (which references the xsl) from within IE6 the
" " 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 " " in the file so that it looks like typical
HTML.  I've tried "&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