Hi,
Try with:

<xsl:value-of select="string('&lt;%@WebService Language=&quot;C#&quot;
...%&gt;')" disable-output-escaping="yes" />

Bye, Paolo.

> -----Original Message-----
> From: Moderated discussion of advanced .NET topics. 
> [mailto:[EMAIL PROTECTED]] On Behalf Of 
> FRIEDMAN,Adam
> Sent: marted� 24 settembre 2002 4.47
> To: [EMAIL PROTECTED]
> Subject: [ADVANCED-DOTNET] XSLT: Emitting "<" or ">" - 
> disable-output-escaping does not work?
> 
> 
> Hi all,
> 
> I'm trying to emit the following text:
> 
> <%@ WebService Language="c#" Codebehind="MyClass.cs"
> Class="MyNamespace.MyClass" %>
> 
> But, it seems, this is not as easy as you'd think.
> 
> Because no matter what I try, it seems < and > get escaped as &lt; and
> &gt;
> 
> Which gives me
> 
> &lt;%@ WebService Language="c#" Codebehind="MyClass.cs"
> Class="MyNamespace.MyClass" %&gt;
> 
> The style-sheet I am using is as follows.
> 
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
> <xsl:output method="text" omit-xml-declaration="yes"/>
> <xsl:template match="*"/>
> <xsl:template match="/TemplateConfig" xml:space="preserve">
> <xsl:text disable-output-escaping="yes"><![CDATA[<]]>%@ WebService
> Language=&quot;c#&quot; Codebehind=&quot;</xsl:text><xsl:value-of
> select="Class/Name"/>.cs<xsl:text disable-output-escaping="yes">&quot;
> Class=&quot;</xsl:text><xsl:value-of
> select="Class/Namespace"/>.<xsl:value-of 
> select="Class/Name"/><xsl:text
> disable-output-escaping="yes">&quot; %<![CDATA[>]]></xsl:text>
> </xsl:template>
> </xsl:stylesheet> 
> 
> I have also tried using <xsl:text
> disable-output-escaping="yes">&lt;</xsl:text> which should, produce
> "<".Ditto for <xsl:text
> disable-output-escaping="yes"><![CDATA[<]]></xsl:text>.
> 
> Am I missing something obvious here? It can't be that hard, and I'm
> pretty sure it used to work in MSXML3...
> 
> Adam.
> 
> 
> Notice:
> The information contained in this e-mail message and any 
> attached files may
> be confidential information, and may also be the subject of legal
> professional privilege.  If you are not the intended 
> recipient any use,
> disclosure or copying of this e-mail is unauthorised.  If you 
> have received
> this e-mail in error, please notify the sender immediately by 
> reply e-mail
> and delete all copies of this transmission together with any 
> attachments.
> 
> 
> 
> You can read messages from the Advanced DOTNET archive, 
> unsubscribe from Advanced DOTNET, or
> subscribe to other DevelopMentor lists at http://discuss.develop.com.
> 

You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced 
DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to