Re: [xsl] xsl:result-document usage

Subject: Re: [xsl] xsl:result-document usage
From: Andrew Welch <andrew.j.welch@xxxxxxxxx>
Date: Tue, 3 Nov 2009 09:12:45 +0000
2009/11/2 a kusa <akusa8@xxxxxxxxx>:
> Hi
>
> I am not very clear with the xsl:result-document usage in xslt 2.0.
> Basically, here is what I want to do.
>
> I have an xml file to which I apply my trasnformation style sheet. In
> my transformation, I calculate what the document number for this input
> file must be. Now when I run the transformation my  output file must
> be {document number}.xml.
>
> Can I achieve this through xsl:result-document?

yep:

<xsl:template match="/">
  <xsl:result-document href="{$filename}">
  ....


--
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/

Current Thread