cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yves Vindevogel <yves.vindevo...@implements.be>
Subject Re: Is using Cocoon a good idea?
Date Thu, 22 Jun 2006 08:55:41 GMT
I think the tool will be "rename directory"

Rename your directory with XSL files, then run the pages and see what is 
missing.
It'll take you an hour or so to copy each xsl file back when you see you 
need it.
Once you ran through the whole site, all that's left in the renamed 
directory is unuseful.


Bertrand Delacretaz wrote:
> On 6/22/06, Gnatz, Michael <Michael.Gnatz@pentasys.de> wrote:
>
>> ...When I just delete a template it might be in use anywhere in those 
>> 500 pagees and I might not recognize...
>
> I don't know of a tool that would help find out which XSLT templates
> are not used (which does not mean that such a tool does not exist).
>
> Given that XSLTs can process any well-formed input, such a tool would
> have to be dynamic, static analysis won't do unless coupled with
> schemas, and in that case the whole thing would get fairly complex.
>
> If you have a way to extensively test your application (and without
> that, refactoring sounds a bit dangerous), you could try adding
> <xsl:message terminate="yes"> statements to templates that you think
> are not used, run the app and see if it breaks.
>
> -Bertrand
>
> ---------------------------------------------------------------------
> 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