This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: appendig to multiple output files
- From: "Bryan Rasmussen" <bry at itnisk dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Thu, 24 Jan 2002 12:06:18 +0100
- Subject: RE: [xsl] appendig to multiple output files
- Keywords: xsltDEV
- Reply-to: xsl-list at lists dot mulberrytech dot com
>Is there a way to append output data for multiple output files using the
>XSLT 1.1 approach with <xsl:document> ?
>I want to generate two separate files (method="text")
I could think of a way if you wanted to generate two seperate files,
(method="xml"), something like the following:
<output file="test.xml">
<p>test</p>
</ouput>
<xsl:template match="output">
<xsl:param name="input" select="document(@file)/*"/>
<xsl:document href="@file">
<xsl:copy-of select="$input"/>
<xsl:apply-templates/>
</xsl:document>
</xsl:template>
<xsl:template match="p">
<para><xsl:value-of select="."/></para>
</xsl:template>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list