Re: [xsl] Limitations of including/importing number of stylesheets into a stylesheets

Subject: Re: [xsl] Limitations of including/importing number of stylesheets into a stylesheets
From: Michael Kay <mike@xxxxxxxxxxxx>
Date: Mon, 29 Nov 2010 23:44:25 +0000
I'm in the habit, when grouping XSLT templates into modules, of
importing any dependencies among the other files so the individual file
can be validated by itself.

The main stylesheet file, the one that's actually called when processing
the content, uses include, and there's a chain of includes going back
from the most specific templates in the main stylesheet file to the most
general in the first stylesheet.

Is this practice likely to be a performance hit?  I try hard to make it
a linear chain of dependencies, but this doesn't always work.

Two generic answers to performance questions apply:

(a) it all depends what processor you are using

(b) the best way to find out is to measure it.

Michael Kay
Saxonica

Current Thread