[Home] [By Thread] [By Date] [Recent Entries]
David Carlisle wrote:
similarly a processor has to cache the result of document() (almost certainly, to get the node identity semantics right) so explictly saving it in a variable is unlikely to make much difference (but does make the code clearer)
Even document('') was accessed and *parsed* every time. This made
the performance drop through the bottom for certain use cases, in
particular the date formatting using an XML structure as lookup
table for month number to month name conversions.Interestingly, the generate-id() identity was fulfilled, whether by caching the result from the first read and throwing away content from further accesses or by other means I don't know. This was filed as a bug soon after 2.0 came out, and was still present in all 2.3 releases. I haven't checked whether it has been fixed in 2.4.x. J.Pietschmann XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|

Cart



