Hi,
Try with:
<xsl:value-of select="string('<%@WebService Language="C#"
...%>')" 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 < and
> >
>
> Which gives me
>
> <%@ WebService Language="c#" Codebehind="MyClass.cs"
> Class="MyNamespace.MyClass" %>
>
> 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="c#" Codebehind="</xsl:text><xsl:value-of
> select="Class/Name"/>.cs<xsl:text disable-output-escaping="yes">"
> Class="</xsl:text><xsl:value-of
> select="Class/Namespace"/>.<xsl:value-of
> select="Class/Name"/><xsl:text
> disable-output-escaping="yes">" %<![CDATA[>]]></xsl:text>
> </xsl:template>
> </xsl:stylesheet>
>
> I have also tried using <xsl:text
> disable-output-escaping="yes"><</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.