No, at present it's not possible to do separate compilation of the
modules in a stylesheet. There are features of the XSLT language that
make this quite difficult to achieve, for example that fact that global
variables defined in the importing module override those defined in the
imported module, even if the variable reference is in the imported
In principle it would be possible to split compilation into two phases,
one of which processes a single module at a time, and a second phase
which is in effect a linker, but it would be a big change.
> -----Original Message-----
> From: saxon-help-admin@...
> [mailto:saxon-help-admin@...] On Behalf Of
> Andrew Welch
> Sent: 12 August 2003 09:13
> To: saxon-help@...
> Subject: [saxon] templated stylesheet that includes dynamic stylesheet
> I have a stylesheet that is fixed and can be compiled into a
> templates object. I now need a dynamic stylesheet that gets
> generated on a per-transform basis to import that templates object.
> Currently the only way I can see of doing it is to drop the
> templates object and reparse the 'fixed' stylesheet for each
> transform, which seems wasteful.
> Is there any technique or objects available, say to the uri
> resolver, that let you pass back a templates object??
> Thanks for any assistance,
> This SF.Net email sponsored by: Free pre-built ASP.NET sites
> including Data Reports, E-commerce, Portals, and Forums are
> available now. Download today and enter to win an XBOX or
> Visual Studio .NET.
saxon-help mailing list