Is it possible to extend/modify the FileGenerator by adding a 'lastmodified' attribute or element to the stream? Looking through the code of FileGenerator it seems as if lastModified date is already read/parsed to decide validity.
Only I have no idea how to (optionally) add the information to the regular FileGenerator. Anybody? Bye, Helma > -----Original Message----- > From: Linden H van der (MI) [mailto:[EMAIL PROTECTED] > Sent: Wednesday, 27 April 2005 21:49 > To: [email protected] > Subject: RE: How to read the lastModifiedDate of the original > XML file? > > > I like this idea of using an input module, but after several hours I > haven't been able to get this working with the merest string variable. > > Could you explain this more extensively? > > Thanks. > > Bye, Helma > > > You could try the JXPathMetaModule. Maybe something like > > <map:match pattern="*"> > > <map:generate src="{1}"/> > > <map:transform src="foo.xsl"> > > <map:parameter name="date" value="{jxpath:new > > java.io.File('{1}').lastmodified()}"/> > > </map:transform> > > <map:etc... > > > > Just a thought. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
