Well, it is disk I/O, so there's bound to be a reasonable hit, but I'm sure the measure of the perfomance hit depends on the XSLT implemention used. (If you're calling document() for many different documents, there will obviously be a bigger hit.) If you have to read the same one a lot, call document() once in a variable declaration and then reference that when you need it.
I'm not sure if it mentions the document() function, but the article by Mike Kay at http://www-106.ibm.com/developerworks/library/x-xslt2/ has a lot of good background for people interested in performance issues.
I have multiple xhtml files that I want to access with the document() function. Each xhtml file has multiple
elements with a numeric id attribute
. I want to match this id number with a <paragraph> element of the xml file that the xslt is applied on, using the key()function. My xlst opens all the xhtml files but only matches the
with the <paragraph> for the fist xhtml the remaining xhtml files are not match. How can I match elements when the document() function opens multiple xhtml files?
Hi,
May be not the right location for posting but
I have a situation where I have to dynamically generate a xsl and deploy it on client. Any changes in that xsl on client side have to be merged with new xsl file (a replacement for the initial one) in next phase when we deploye the application again on client side. I would really appreciate any suggestions.