This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: multiple output files in xslt 1.0
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] multiple output files in xslt 1.0
- From: jay at gnt dot net
- Date: Thu, 16 Aug 2001 05:19:23 -0500
- References: <9B821F66018BD411BACA009027C3B6074A92CA@HERMES>
- Reply-To: xsl-list at lists dot mulberrytech dot com
I tried your example like this:
<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:lxslt="http://xml.apache.org/xslt"
xmlns:redirect="org.apache.xalan.xslt.extensions.Redirec
t"
extension-element-prefixes ="redirect"
>
<xsl:output method="text" omit-xml-declaration="yes" />
<xsl:template match="/dummy">
<xsl:text>Before redirect.</xsl:text>
<redirect:write file="redirecteds.txt"
method="text">
<xsl:text>Inside redirected.txt</xsl:text>
</redirect:write>
<xsl:text>After redirect.</xsl:text>
</xsl:template>
</xsl:stylesheet>
with the xml doc you gave and it worked just fine. It
looks like you are one node too high in your call.
Hope it helps,
Jay Hebert
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list