aspose file tools
The moose likes Java in General and the fly likes XSL Templates Caching Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "XSL Templates Caching" Watch "XSL Templates Caching" New topic
Author

XSL Templates Caching

Amru Reddy
Greenhorn

Joined: Feb 17, 2006
Posts: 3
I am working on xsl performance improvement project.The current implementaion uses xalan xslt processor. Original plan is to replace xalan interpretive processor with xsltc ( compile style sheet once and use translets for transform thereon..). It dit not work because current implementaion makes extensive use of xalan:evalaute() library function which is not supported bt xsltc. ANY HELP ..ANY WORK AROUND TO THIS WOULD BE HIGHLY APPRECIATED..
alternately looking at caching Templates objects and use them for transformations. can any one throw some light on Template caching mechanism.

I have around 250 xsl files, will it be wise to cache 250 Templates in JVM memory? Any inputs on this.
If some one has sample Template Cache code, please send me for my use.

Thanks in advance,
Amru
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12328
    
    1
The first question that occurs to me is what version of Java are you working with? Java 1.5 appears to provide for compiled Templates objects .

As far as caching is concerned, Whirlycache claims to be very fast. It is a generalize cache toolkit.

Bill
PS. Hmm I see that the Java 1.5 - Xalan compatibility situation is not as simple as I thought.


Java Resources at www.wbrogden.com
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 16487
    
    2

Originally posted by William Brogden:
The first question that occurs to me is what version of Java are you working with? Java 1.5 appears to provide for compiled Templates objects.
In fact Templates has been around since the earliest versions of JAXP. This article is directly relevant to the question.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: XSL Templates Caching
 
Similar Threads
xsl:apply-templates
Convert XSLT Template to XSLT String object
Help on XSL XPath
creating pdf,xml,doc file using servlet
Transforming Huge xml about 50 MB in size