RE: [xsl] Count() nodes ??

Subject: RE: [xsl] Count() nodes ??
From: "Passin, Tom" <tpassin@xxxxxxxxxxxx>
Date: Wed, 17 Sep 2003 11:19:35 -0400
[ 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?


Tom P

 XSL-List info and archive:

Current Thread