This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: new release of the XSLT book/caching included XSLT sheets withthe JAXP API



Ovidiu Predescu <ovidiu@cup.hp.com> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]