• Post Reply Bookmark Topic Watch Topic
  • New Topic

XSL Templates Caching  RSS feed

 
Amru Reddy
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Paul Clapham
Sheriff
Posts: 22701
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!