This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: appendig to multiple output files




>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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]