0

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

3 Answers 3

1

Templates are compiled XSLT scripts.

http://docs.oracle.com/javase/6/docs/api/javax/xml/transform/TransformerFactory.html#newTemplates(javax.xml.transform.Source)

Sign up to request clarification or add additional context in comments.

Comments

0

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

Comments

0

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.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.