Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 23rd, 2011, 04:04 AM
Friend of Wrox
 
Join Date: Jun 2008
Posts: 291
Thanks: 9
Thanked 29 Times in 29 Posts
Thumbs up Rename PDF/JPG files present in a folder

Hi,

My main scope is to transform XML files. But the scope also includes renaming the PDF/JPG files that are cross-referred in the input XML files. The PDF/JPG files will be present in the same folder where the XML file is present.

List of files in a folder:

1. Test.xml - This is the input xml that contains cross-refs to the following PDF/JPG files.
2. Test1.pdf - This has to be renamed as Test1_sample.pdf during run time.
3. Test2.pdf - This has to be renamed as Test2_sample.pdf during run time.
4. Test1.jpg - This has to be renamed as Test1_sample.jpg during run time.
5. Test2.jpg - This has to be renamed as Test2_sample.jpg during run time.

Hope my requirement is clear.

Please provide your ideas. Thanks!
__________________
Rummy
 
Old July 23rd, 2011, 09:36 AM
samjudson's Avatar
Friend of Wrox
 
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

XSLT doesn't really have any easy way to modify files on the hard drive. You'd have to probably write some form of extension function, but that would depend on which processor you where using, and this kind of thing would probably be easier to just write in that language.
__________________
/- Sam Judson : Wrox Technical Editor -/

Think before you post: What have you tried?
 
Old July 25th, 2011, 07:55 AM
Friend of Wrox
 
Join Date: Jun 2008
Posts: 291
Thanks: 9
Thanked 29 Times in 29 Posts
Default

thank you Sam.
__________________
Rummy





Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert PDF to JPG harpua PHP How-To 1 September 17th, 2007 06:04 AM
Rename web site, aspx, folder in VS 2005? cJeffreywang BOOK: Professional ASP.NET 2.0 and Special Edition; ISBN: 978-0-7645-7610-2; ISBN: 978-0-470-04178-9 0 July 9th, 2007 11:40 AM
Rename File/Folder shivanshub C# 17 August 19th, 2006 09:48 AM
Rename File/Folder shivanshub General .NET 0 August 11th, 2006 01:57 PM
How to create a folder in server and rename files pramos.21d ASP.NET 2.0 Basics 0 April 24th, 2006 05:27 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.