[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Processing mutiple files in multiple directories
Hi Tony,
Yes, I misspoke when I said I wanted to overwrite the original. I should have said that I would eventually replace the original. Thanks again to everyone, you've given me a lot to think about. Mark -----Original Message----- From: Tony Graham Sent: Friday, March 18, 2011 3:01 AM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Re: Processing mutiple files in multiple directories individually On Fri, March 18, 2011 12:00 am, Mark wrote: I am using XSLT 2.0.
(2) if the file does not require editing, drop it and move on to the next file; or That's a bit tougher to do with only XSLT. You could, as others have said, traverse through the files to produce a list of files to process in a second transformation or a second pass or you could apply an identity transform on the other files such that every file gets processed one way or the other. (3) if the file requires editing, make the editing change and write the file out to its original location.
You could, as Liam said, write the files to another location and copy them over the originals after the XSLT has been run. Regards,
[1] http://www.saxonica.com/documentation/sourcedocs/collections.xml
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|