cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Linden H van der (MI)" <H.vanderLin...@MI.unimaas.nl>
Subject FileGenerator modification? (was: RE: How to read the lastModifiedDate of the original XML file?)
Date Wed, 27 Apr 2005 20:26:03 GMT
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:H.vanderLinden@MI.unimaas.nl] 
> Sent: Wednesday, 27 April 2005 21:49
> To: users@cocoon.apache.org
> 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: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message