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

Re: Add file name+path to processed document

Subject: Re: Add file name+path to processed document
From: Emmanouil Batsis <Emmanouil.Batsis@xxxxxxxxxxx>
Date: Mon, 29 Nov 2004 13:01:29 +0200
ant xml task
Robert Soesemann wrote:

Hello,

in my ANT processing pipeline I process a folder structure full of XML
documents. One task is to add the file name and path to each processed
file via XSL. Is there a way to extract the name and path of the
currently processed file from the processor and write it to the output
document. It does not need to be standard XSLT becaused inside ANT I am
able to switch processors.



The style/xslt task accepts parameters via nested elements (see documentation). Just pass the base file path to each transformation. I cannot think of a way to actually pass the file name being processed when dealing with a fileset, but maybe you can get away with the path (after all you probably only change the extention of the file, right?).




hth,


MAnos


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.