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

performance issues

Subject: performance issues
From: tom.kirkpatrick@xxxxxxxxxxxx
Date: Wed, 9 Mar 2005 11:07:25 +0000
kirkpatrick performance
I have a generic XSL stylesheet which I use to transform multiple 
documents. This stylesheet contains a great number of templates, some of 
which are only used once, on one particular type of source document.

If I have lots of templates all in one file like this, is it likely to 
cause any performance issues? Or are the templates only loaded as and when 
they are needed?


(I am processing with Apache::AxKit)



Likewise, if I set up a variable which is effectively a pointer to an 
external document via the document() function, like so:

<xsl:variable name = "testDoc" 
select="document('/www/xml/testDoc.xml')/root/>

Does this cause the processor to load the contents of the document into 
memory, or will it not actually do that untill I make a futher attempt to 
try and acces some information from this document like so:

<xsl:value-of select="$testDoc/item[@id = $id]/@name"/>

-- 
Tom David Kirkpatrick
Virus Bulletin Web Developer, Virus Bulletin

Tel: +44 1235 555139
Web: www.virusbtn.com

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.