cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jorg Heymans ...@domek.be>
Subject Re: How to read the lastModifiedDate of the original XML file?
Date Wed, 27 Apr 2005 12:17:43 GMT

Linden H van der (MI) wrote:
> Hi,
> 
> my website consists of several XML pages that are transformed into HTML
> using various XSL files. I'd like to add a "last modified" timestamp,
> but that means I need the lastModifiedDate of the original XML, because
> the javascript I used takes the moment of generation of the HTML page,
> which is basically about 1 minute earlier than the current time.
> 
> Does anyone know an elegant way to achieve this?


How about a custom transformer that reads the files and adds a meta 
timestamp tag to your document?

Alternatively (but I'm not sure) you could use an action that reads the 
timestamps and makes them request-local available for the stylesheet.

HTH
Jorg


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


Mime
View raw message