Hello,

Shoot me if I'm wrong.

This is to do with the Source (?) class isn't it ?  It has a
lastModified(...) function.  Source is created for the "importing"
stylesheet, and lastModified of course returns the last modified of the
"importing" file.  It would have to open the file, *parse* it and
recursively traverse through it's import and include tags to find the
"imported" files ( and their "imported" files :) opening and parsing all
them as well, get _their_ last modifieds and keep track of the most recent
one out of that lot.

It is a pain to touch every single xsl that imports another one, but the
above approach, if implemented in the "raw" way described above, would cause
a lot of thrashing around !

I suppose this a better question for the dev list, but would their be an
easy way to monitor a list of files for their last modifieds ?  ( Like JBoss
does )  That might make a better solution available.


Jason.

-----Original Message-----
From: Peter Royal [mailto:[EMAIL PROTECTED]]
Sent: Friday, 28 June 2002 12:41 PM
To: [EMAIL PROTECTED]
Subject: Re: Unexpected behavior with imported stylesheets


On Thursday 27 June 2002 09:14 pm, Phil wrote:
> There was a thread about this some time back and I believe that it's on
> a to-do list somewhere. Is anyone at apache able to confirm this?
>
> Your 'touch' workaround is the only solution that I know of at this time.
>
> Anyone have any advances on this?

You are correct. There was a thread, its on a TODO, but nothing yet.
-pete

--
peter royal -> [EMAIL PROTECTED]

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

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



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

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

Reply via email to