user1177969
user1177969

Reputation: 105

Best way of transforming XSLT in J2EE webapp

I have a web application which has several pages, of few are using XSLT stylesheet for rendering webpages. Problem here is that for every request I have to get the XSLt file from file system and then run transformation which is no good for performance. What can be the best solution here in memory tranformation, Is that a good solution ? or some other solution.

Thanks

Upvotes: 0

Views: 228

Answers (3)

Michael Kay
Michael Kay

Reputation: 163458

If you're using the same stylesheet repeatedly you definitely want to compile it once and save the result in memory. The JAXP interface represents a compiled stylesheet as the Templates object; cache this somewhere.

Upvotes: 0

A. M. Mérida
A. M. Mérida

Reputation: 2618

the framwork I know for transformations xml, xslt, html, is apache cocoon.

Upvotes: 0

Related Questions