[Yanel-dev] XSLT only if XSL has changed

basZero baszero at gmail.com
Fri Feb 28 10:08:48 CET 2014


Hi,

as you know, Yanel performs the XSLT (Transformation of XSL to temporary
Java Class) for EACH request.

I would like to ask, whether there is anybody out there who has played with
these two alternative approaches:

1) extend XSLT Processor in a way, that it keeps a list of XSLs including
timestamps and only does the transformation, if the XSL has changed. Hence:
reuse the java classes from earlier if nothing changed.

This option would still have the advantage that you can change/patch XSL
files in the running system and see the changes immediately.

2) There is an official XSLT processor mode called "cached". In this mode,
the XSLT processor only performs the XSLT once and keeps the generated java
classes for the lifetime of the JVM. This is certainly the fastest way of
having XSLT in a system, but any changes to XSLs are of course ignored once
the XSLT has happened. So this is a disadvantage.

I would be interested in some hands-on experience for option 1).

Cheers, Bas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wyona.org/pipermail/yanel-development/attachments/20140228/5e971da2/attachment.html>


More information about the Yanel-development mailing list