[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Tool for transforming files in folder structures

Subject: Re: Tool for transforming files in folder structures
From: Stefan Krause <stf@xxxxxxxx>
Date: Fri, 07 Nov 2008 01:15:56 +0100
Re:  Tool for transforming files in folder structures
Thank you, that works very good.

Stefan Krause

Michael Kay schrieb:
> Saxon will handle this.
> Use the collection() function to read the input files, in conjunction with
> saxon:discard-document() to make sure that each file is discarded from
> memory after processing. 
> It would be something like
> <xsl:template name="main">
>   <xsl:for-each
> select="collection('file:///c:/input-dir/?select=*.xml;recurse=yes')/discard
> -document(.)">
>     <xsl:result-document href="{replace(document-uri(.), '/input-dir/',
> '/output-dir/')}"/>
>       <xsl:apply-templates select="."/>
>     </xsl:result-document>
>   </xsl:for-each>
> </xsl:template>
> and then the template rules to do the transformation.
> Michael Kay
> http://www.saxonica.com/
>> -----Original Message-----
>> From: Stefan Krause [mailto:stf@xxxxxxxx] 
>> Sent: 06 November 2008 23:23
>> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
>> Subject:  Tool for transforming files in folder structures
>> Hello,
>> I have to transform a set of about 120000 files in a nested 
>> folder structure (about 8000 Directories). I need a tool, 
>> which transforms these files (all by the same stylesheet) and 
>> recovers the folder tree in the output directory.
>> Any suggestions?
>> Stefan Krause

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.