Re: How to handle multiple result documents saved to different folders in p:xslt

Hi Steve,

Not sure whether this answers your question:

   <p:xslt name="xslt">
     ………
   </p:xslt>

   <p:sink/>

   <p:for-each>
     <p:iteration-source>
       <p:pipe step="xslt" port="secondary"/>
     </p:iteration-source>
     <p:store omit-xml-declaration="false">
       <p:with-option name="href" select="base-uri()"/>
     </p:store>
   </p:for-each>

stores each document on the secondary port with its base-uri() as set by 
xsl:result-document/@href.

Gerrit


On 23.08.2013 14:54, Steve Taylor wrote:
> Hi,
>
> I have an XSLT file that saves multiple result-documents to different
> directory locations. Is there a simple way to allow the p:xslt step to
> save this as it specifies in the xslt or does the secondary output have
> to be handled by the pipeline?
>
> Would i need to add logic in the pipeline to figure out where each
> secondary output file was supposed to be saved based on it's contents?
>
> --
>
> Regards
> Steve

Received on Friday, 23 August 2013 13:55:55 UTC