[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: External XML Document Caching
> The external file is accessed via the document('...') function. > > My question number 1: Do XSLT processors cache external > referenced XML files? Probably not, but obviously it depends on the processor. However, most processors allow you to preload the document from the calling API. You may find it better to supply the lookup document as the value of a stylesheet parameter; if you do it using the document() function you can implement a URIResolver or equivalent that maintains the cache. > > Question number 2: Do you recommend any strategies to > optimise the query to the external XML file? I have > considered the following, but I am unsure as how each of them > can improve performance: > - Using the xsl:key + key function on the external > document('...') file. > - Implement the lookup table in a XSL file, specifying the > mappings outside the <xsl:templates> so that they are not > rendered. Using keys will generally improve performance significantly, unless you are using a processor like Saxon-SA that does the optimization automatically. I can't see how your other idea would help. Michael Kay http://www.saxonica.com/
|
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
|