Oops...forgot to tell you to add disable-output-esaping in the xsl:text
element...
<?xml version='1.0'?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<xsl:text disable-output-escaping="yes"><%@ Register TagPrefix="af"
Namespace="ActionlessForm"
Assembly="ActionlessForm" %></xsl:text>
<bla/>
</xsl:template>
</xsl:stylesheet>
Will produce:
<%@ Register TagPrefix="af" Namespace="ActionlessForm"
Assembly="ActionlessForm" %><bla/>
The alternative if you absolutely need to create dynamic attribute value
is to use xsl:text up until the point of outputting dynamic data, close
it, output the data, and then create another xsl:text element for the
remainder of the text (although technically it shouldnt really matter as
the processor is only concerned with < as it sees it as a start of a tag)
Best of luck!
<M:D/>
M. David Peterson wrote:
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 < 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/>
--+------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--+--