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

RE: Importing compiled stylesheets

Subject: RE: Importing compiled stylesheets
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Thu, 9 Jun 2005 14:13:31 +0100
RE:  Importing compiled stylesheets
Unfortunately the module mechanisms in XSLT don't really lend themselves to
independent compilation of modules, since much of the information you need
when compiling isn't available until all the modules are available. For
example if A imports B, then B can refer to a global variable defined in A.
Also, A can redefine a global variable defined in B, and the replacement can
even have a different type. So when you compile B, you don't know very much
about the environment it will run in, which reduces your ability to make
compile-time decisions.

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



> -----Original Message-----
> From: Andrew Welch [mailto:ajwelch@xxxxxxxxxxxxxxx] 
> Sent: 09 June 2005 10:17
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  Importing compiled stylesheets
> 
> 
> The reason I would like to be able to import a compiled stylesheet is
> not to use a functional library, but for performance.
> 
> I have this kind of setup:
> 
> A -> B -> C
> 
> Stylesheet A imports B, which imports C.
> 
> B and C are both reasonably large stylesheets.  A is generated per
> request, is quite small and overrides specific templates in B or C
> depending on the requirement.  I keep compiled copies of B and C in
> memory, so when A is not needed I can just use the compiled version.
> However, when A is needed, B and C must be parsed and built each time.
> 
> The fact that in XSLT the 'project specific' stylesheet must 
> import the
> 'common' stylesheet, is why we really could do with a way of compiling
> up that common stylesheet.
> 
> cheers
> andrew

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.