Hi,

 

I would like to know more about how document() and xsl:key work in Xalan 1.4 and 1.5. Before going through the code in a debugger, I’d be very interested in getting any information from this list. Some specific questions:

 

- If I compile a stylesheet containing document(‘’), is the latter called each time the compiled stylesheet is used for a transform? Or is the content parsed and stored in-memory once and for all? More generally, if the argument to document is a fixed URI (as opposed to an input parameter value, a la “document($someURL)”), is the URI content retrieved just once?

 

- Assuming that indeed, the value of document(“FixedURI”) is fetched upon stylesheet compilation: if I use <xsl:key> to build an index on some nodes of the fetched document, will the index be reused across successive transforms with the same stylesheet? Or is the index rebuilt each time the compiled stylesheet is used?

 

Thanks in advance for any info and possibly links to the Xalan C++ code.

 

Emmanuel

Reply via email to