Re: [xsl] output .net register directive

Subject: Re: [xsl] output .net register directive
From: "M. David Peterson" <m.david@xxxxxxxxxx>
Date: Tue, 26 Oct 2004 17:12:23 -0700
Jan Limpens wrote:

hi,

how can make xslt output something like this:
<%@ Register TagPrefix="af" Namespace="ActionlessForm"
Assembly="ActionlessForm" %>
in front of the output xml document-element....

<?xml version='1.0'?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
<xsl:template match="/">
<%@ Register TagPrefix="af" Namespace="ActionlessForm"
Assembly="ActionlessForm" %>
<bla/>
</xsl:template>
</xsl:stylesheet>

does not work, but how does it? (and i need



Change the < to &lt; so that your parser doesnt think its looking at an element that it needs to process. If none of the data contained in the ASP tag is dynamically created I would put the entire character sequence enclosed in <xsl:text></xsl:text> just to ensure that the processor recognizes this as literal text to output. If any of those values are dynamically set then using xsl:text will not work as any further xsl processing or output elements contained within xsl:text will not be processed.

Best of luck!

<M:D/>

Current Thread