You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Tom Amiro <To...@Sun.COM> on 2001/09/04 15:18:13 UTC
Re: Protocol doesn't support output
Hi,
I heard Gary ask if the XSLTC folks are listening.
Morten just added an extension to XSLTC support the
redirection of output to files.
It is used like this:
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xsltc="http://xml.apache.org/xalan/xsltc"
xsl:version="1.0">
<xsl:template match="/">
<xsl:text>This goes to standard output</xsl:text>
<xsltc:output file="blob.xml">
<xsl:text>This ends up in the file 'blob.xml'</xsl:text>
</xsltc:output>
</xsl:template>
</xsl:stylesheet>
The 'file' attribute of the <xsltc:output> element is treated as
an attribute value template, so it can contain variable references
and all the usual stuff.
This may be just what B.Verachten needs.
Tom