Re: [xsl] new release of the XSLT book/caching included XSLT sheets with the JAXP API

Subject: Re: [xsl] new release of the XSLT book/caching included XSLT sheets with the JAXP API
From: David_N_Bertoni@xxxxxxxxx
Date: Fri, 4 May 2001 10:55:52 -0400
Ovidiu Predescu <ovidiu@xxxxxxxxxx> wrote:
> Anyway, while reading the JAXP section, I suddenly realized there is
> no way to cache included stylesheets using the URIResolver and
> Templates classes.
>
> JAXP allows one to cache the root stylesheet using a Templates object,
> but for any included/imported stylesheets I didn't see any way to
> cache them using a Templates object. This is especially true if I have
> my own URI which needs to be resolved through a special URIResolver:
> the interface includes only a resolve() method that returns a Source
> object. If my included/imported XSLT sheet is a local file on the
> disk, how can I reuse the probably already parsed template?

This is probably implementation dependent, but Xalan "compiles" the main
stylesheet and all of the imported and included stylesheets into the
Templates object.

I believe Saxon does this as well, but I'm not sure.

Dave


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread