Subject: RE: [xsl] Importing compiled stylesheets From: "Michael Kay" <mike@xxxxxxxxxxxx> Date: Thu, 9 Jun 2005 14:13:31 +0100 |
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: [xsl] 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Importing compiled styles, James Fuller | Thread | Re: [xsl] Importing compiled styles, Dimitre Novatchev |
Re: [xsl] incrementing the index va, David Carlisle | Date | Re: [xsl] incrementing the index va, Arulraj |
Month |