|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: new release of the XSLT book/caching included XSLT
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








