xsl-list
[Top] [All Lists]

RE: Count() nodes ??

2003-09-17 08:19:35
[ Dipesh Khakhkhar]

I didn't got your point fo this "Incidentally, using //Root 
rather than /Root 
to access the document element is appallingly inefficient."


"//Root" forces the processor to look through the entire document
looking for all "Root" elements that it may be able to find, no matter
how deeply nested they may be. "/Root" forces the processor to look for
all "Root" elements that are children of the document node - it knows
that there can only be one, and it already knows how to get that one.

"Appallingly inefficient", yes?

Cheers,

Tom P

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>