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

Re: Finding source file date/time from XSLT

Subject: Re: Finding source file date/time from XSLT
From: Jens Stavnstrup <js@xxxxxxx>
Date: Fri, 10 Feb 2006 16:13:50 +0100 (CET)
ant date
No. Since, I am using Ant to transform ALL files with the Ant task xslt,
there is no way I can specify the date of the file in the call to saxon.

However, I just realised, that I can identify the source file using
document-uri(), so it should be possible to just call java from the XSLT



On Fri, 10 Feb 2006, Antsnio Mota wrote:

> Can't you just send the date/time of the file as a parameter to the XSLT?
> On 10/02/06, Jens Stavnstrup <js@xxxxxxx> wrote:
> >
> > I am current using Ant 1.6.5, Saxon 8.6 and Xerces 2.7.1 to transform a
> > large set of XHTML files (adding header, footer, menu bar etc.).
> > Additionally, I would like to add a time stamp of the source file in the
> > transformed file (i.e. not the time the file was transformed, but the
> > time it was edited).
> >
> > When browsing the XSLTProcess.java from the Ant distribution, it looks as
> > if the input file is send to the XSLT processor as a java.io.File object.
> > So as far as I can see, it should be possible to write a Saxon
> > Extension function, which can return the date/time of the processed XML
> > file - please, correct me if I am wrong.
> >
> > Since I am far from a Java Whiz, I hope that somebody can provide me with
> > a hint or two on how to implement such an extension function.
> >
> > Regards,
> >
> > Jens

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.