> From: Daniel Pfuhl [mailto:[EMAIL PROTECTED]]
> 
> hi,
> 
> i have something like i would call a problem :)
> let me sketch the environment:
> 
> I do a multistage transformation like this:
> 
> 
> menu.xml     content.xml
>      |   (1)     |
>       \         /
>        ---+----
>           |
>      (2)  +------date2xsp.xsl
>           |

You should have serverpages generator somewhere here.


>      (3)  +---------- all2html.xsl
>           |
>           |
>      result.html
> 
> (1) Merging two xml-files
> (2) Add some Java-Logic-Stuff using xsl
> (3) transform the merged and transformed xml again
>     in order to get html for my browser
> 
> so far everything works fine for me, except when I
> try to get the last modified date for the content.xml
> or the merged (content.xml + menu.xml)

Why you want last modified date and how you are trying to get it?

 
> in my xsp i also tried to access the
> "dateCreated"-variable wich is by default added by
> Cocoon to the
> generated *.java but it changes everytime i request
> the site - even if i don't change anything in the

This date is created when creating Java source for the XSP page. If it
changes, you will have serious scalability issues as this indicates that
XSP is re-compiled on every request.


> content.xml or the menu.xml. is it wrong to assume
> that cocoon will cache the merged pipeline-object
> (result of first merge using content & menu)??

No, it is not wrong. Cocoon *does* cache results of the pipelines *if*
pipeline is cacheable.


> how can i pass through the last modified-date from
> that early stage?

>From what stage you want to pass the date? AFAIU, you want XSP page
compilation date?


> before in cocoon1 or in a "simple"
> transformation the solution using trhe servlet-
> environment to get the path and from there the last-
> modified-date works really fine - but not for this
> more complex variation.
> 
> i think i am not the first one who has this problem,
> am i?

You are. I never heard that somebody needed access to last-modified.

Vadim


> it would be very nice if there is somebody
> outside who has a deeper understanding of the things
> going on inside cocoon than me at this time, who can
> help me out or point me in the right direction.
> 
> nevertherless i have to say that c2 is really fun
> developing applications.
> 
> daniel



---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to