[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Pre loaded/compiled stylesheets for xsl:include -

Subject: RE: Pre loaded/compiled stylesheets for xsl:include - How to do it?
From: "Yates, Danny (ANTS)" <danny.yates@xxxxxxxxxx>
Date: Fri, 30 Aug 2002 10:58:17 +0100
xsl including stylesheets
Hi Jude,

Have you looked at the Apache Xalan XSLTC Translet compiler? You can
pre-compile your stylesheets into Java bytecode. I've not looked at
it in too much detail - I know you can do it programatically using
the JAXP/TrAX API - but I think you can also do it at from the
command line and get a .class file out.

If you decide to do it programatically, you can cache the resulting
Translets in memory. They will be much smaller and faster than the
normal tree-based representation of your stylesheet used by most



Danny Yates
Technical Architect
Abbey National Treasury Services
E-mail: Danny.Yates@xxxxxxxxxx
Phone: +44 20 7612 4017
Fax: +44 20 7612 4342

-----Original Message-----
From: Jude Albert [mailto:judealbert78@xxxxxxxxx]
Sent: 30 August 2002 10:46
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject:  Pre loaded/compiled stylesheets for xsl:include - How to
do it?


My project has several xsls (around 60) with the
following format

<?xml version="1.0" standalone='no'?>
<xsl:stylesheet version="1.0"

<xsl:include href = "user_options.xsl"/>
<xsl:include href = "include.xsl"/>
<xsl:include href = "common.xsl"/>

<xsl:template match="/">
  some xsl code

The three include stylesheets mentioned above will be
included in most of the stylesheets.  And they are of
considerable size.  Is there any way by which I can
cache these include stylesheets alone and link the
cached thing to all other stylesheets while
loading/parsing them?  (I'm using XT)  

Here is the reason for the question:
I have moved all the commonly used templates to one of
the three above mentioned include files.  This helps
me in avoiding code duplication and makes my
stylesheets more readable.

But my making several commonly used templates to be
generic, the xsl stylesheet size has grown
considerably and it is beating me with a great
performance bottleneck.  Considerable time is spent in
the stylesheet loading and parsing.  

I tried caching all the stylesheets.  It gave me a
good performance improvement but the memory grows very
huge.  I do not want either it to happen.

So I want to have only those include stylesheets to be
cached and include them when the normal stylesheet is
loaded (on the servlet side).  By doing so, it is not
going to affect memory significantly and at the same
time will reduce the loading/parsing time for other

Thanks in advance

Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

This communication (including any attachments) contains confidential information.  If you are not the intended recipient and you have received this communication in error, you should destroy it without copying, disclosing or otherwise using its contents.  Please notify the sender immediately of the error.

Internet communications are not necessarily secure and may be intercepted or changed after they are sent.  Abbey National Treasury Services plc does not accept liability for any loss you may suffer as a result of interception or any liability for such changes.  If you wish to confirm the origin or content of this communication, please contact the sender by using an alternative means of communication.

This communication does not create or modify any contract and, unless otherwise stated, is not intended to be contractually binding.

Abbey National Treasury Services plc. Registered Office:  Abbey National House, 2 Triton Square, Regents Place, London NW1 3AN.  Registered in England under Company Registration Number: 2338548.  Regulated by the Financial Services Authority (FSA).

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.