Karl Øie wrote:
> wget timing:
> ------------
> first run of "toc.html" -> 41.879s
> second run of "toc.html" -> 0.013s (!!!)
>
> first run of "page.html?xpath=//*[@id='1222']" -> 58.031s
> second run of "page.html?xpath=//*[@id='1222']" -> 0.017s (!!!)
Hi Karl,
maybe I have another proposal for you:
If you have a DTD for your XML and your @id is really unique in the whole
XML, you can use the id()-function of XPATH. Instead of "//*[@id='1222']"
use "id('1222')". This takes much less time than your statement (around
factor 10; of course dependent on the size of the XML, my XML was 150 KB ->
maybe better factor for you).
Joerg
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>