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

RE: Xsl Include cached?

Subject: RE: Xsl Include cached?
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Mon, 30 Jul 2007 21:37:44 +0100
RE:  Xsl Include cached?
> Do any xslt processors cache xsl:include? If not, what 
> strategies can one use to speed this process up?

It would be easy enough to avoid re-reading and re-parsing the module at the
XML level, but I doubt that's a significant cost. It's difficult to avoid
re-compiling the module each time it is included, because in general it's
going to compile into different code each time. For example if the included
module does a call-template name="x", and the including module declares or
overrides a template named x, then the call-template instruction is going to
compile to code that references the overriding template rule. Next time
someone else includes the same module from somewhere different, the
call-template will compile to something quite different.

There is a requirement for independent compilation of stylesheet modules,
but I think that would need a language feature with rather different
semantics than xsl:include.

Michael Kay
http://www.saxonica.com/

Current Thread

Back To School Sale!

Save 30% off all Stylus Studio 2008 Products when you purchase from our Online Shop.

Offer ends August 31, 2008.

Coupon Code
TRTY-C4JV-OFF

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-2007 All Rights Reserved.