all groups > dotnet xml > may 2004 >
You're in the

dotnet xml

group:

Output escaping with XSL


Output escaping with XSL Paul Hatcher
5/27/2004 1:55:47 PM
dotnet xml: Hi

I'm transforming some XML to HTML but the via XslTransform and a
StreamWriter, but I can't get it to obey <xsl:text> escaping rules.

I have a statement

<xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>

but I get &amp;nbsp; in the output rather than &nbsp;

If I do this from XML Spy against the MSXML 3/4 engines it works as expected
so I think it's specifc to .NET. Any suggested options to set?

Regards

Paul

Re: Output escaping with XSL Magnus
5/27/2004 10:34:47 PM
Even though it doesn't answer your question directly, use &#160; instead of
nbsp when using xsl.

"Paul Hatcher" <phatcher@spamless.cix.co.uk> skrev i meddelandet
news:OdkEwn%23QEHA.3944@tk2msftngp13.phx.gbl...
[quoted text, click to view]

Re: Output escaping with XSL Paul Hatcher
5/27/2004 11:37:02 PM
That seems to put capital A circumflex into my output?

Paul

[quoted text, click to view]

Re: Output escaping with XSL Magnus
5/31/2004 1:38:00 PM
I'm abit confused here, because I'm not getting the result I'm expecting at
home either. I'll have to take a look at the code at work...

"Paul Hatcher" <phatcher@spamless.cix.co.uk> skrev i meddelandet
news:eOAvksDREHA.808@tk2msftngp13.phx.gbl...
[quoted text, click to view]

Re: Output escaping with XSL Paul Hatcher
6/10/2004 3:50:30 PM
Any result?

Paul

[quoted text, click to view]

AddThis Social Bookmark Button