
Signature
Oleg Tkachenko [XML MVP]
http://blog.tkachenko.com
Oleg
I'm actually trying to output into my HTML stream, but I can't use it
in the stylesheet as this raises an error so I use
<xsl:text disable-output-escaping="yes">&nbsp;</xsl:text>
I found out about the restrictions on using XmlWriter the hard way, and I'm
currently using a FileStream - but it I still get &nbsp; in the HTML
The XLST spec http://www.w3.org/TR/xslt#disable-output-escaping, seems to
say this is possible, but then the notes on XslTransform seem to imply that
the implementation is non-conformant.
Paul
> > I have a transform going from XML to HTML, but I can't seem to get the
> > XslTransform class to output & as & even when using
[quoted text clipped - 8 lines]
>
> Provided 1) I'd leave it alone.
Oleg Tkachenko [MVP] - 08 Oct 2004 11:08 GMT
> I'm actually trying to output into my HTML stream, but I can't use it
> in the stylesheet as this raises an error so I use
You can just use   as a numeric reference to the nonbreakable
space. There is no need for any trickery here.
> <xsl:text disable-output-escaping="yes">&nbsp;</xsl:text>
>
> I found out about the restrictions on using XmlWriter the hard way, and I'm
> currently using a FileStream - but it I still get &nbsp; in the HTML
Sorry, I can't reproduce the problem, it works (and always worked) for
me. Show some repro - XML, XSLT, code where you run XslTransform.

Signature
Oleg Tkachenko [XML MVP]
http://blog.tkachenko.com