• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

XSL Templates Caching

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Marshal
Posts: 28303
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
I'm full of tinier men! And a tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic