Hi Mathias,

You might create your own FileMetaGenerator which extends
org.apache.cocoon.generation.AbstractGenerator

You could let this FileMetaGenerator generate an xml snippet like:

<file:file xmlns:dir="http://apache.org/cocoon/file/2.0";>
  <file:lastmodified>1056668768203</file:lastmodified>
  <file:name>input.xml</file:name>
  <file:path>...</file:path>  
  <file:isDirectory>false</file:isDirectory>
  <file:isFile>true</file:isFile>
   ....
</file:file>

Then you could use the aggregator to aggregate your xml file with this
fileMeta.xml  and run a stylesheet over the aggregated xml to extract
the info you need.

There are probably better ways to do this but this is the first thing
that comes to my mind.

Robby

-----Original Message-----
From: Mathias Reem [mailto:[email protected]] 
Sent: donderdag 5 februari 2009 18:47
To: [email protected]
Subject: Re: sitemap parameters

Hi

> Uh..... LastModified of what??  Could you be more elaborate? Can you
> explain the usecase a bit more?
Sorry. We use xml files (and database entries in the future) that are
converted by cocoon to html. The generated page must show when it as
last changed. So for the start I would want to use the MTIME of the xml
input file to show it on the html page.

The long shot goal:
When we add the database as additional input source, I would like the
take db updates/modifications also into account. I'm not even sure if
this is possible at all.

thanks
        Mathias

---------------------------------------------------------------------
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]

Reply via email to