[Home] [By Thread] [By Date] [Recent Entries]
i am making an attempt to answer ur question
select="A//C" This would make the processor to search for C that are children of A iin the whole document.. This is definitely not fast select="A//B//C" would make the processor to search for all Cs under all Bs under A. This is slightly better approach.. But ** If you are sure C is under B and also if you are sure that B is a direct child of A then the best would be /A/B//C.. After thinking for a while, Im guessing it makes no difference to the selection time as the same number of nodes still need to be traversed. Theoretically, it may be slower as it involves an extra test. Is this correct? (or too insignificant to worry about)... I think it does make a difference because the selection would straight away points to the Children of B ( with /A//B//C) than going and checking all the children of the root element A( with A//C) hope this helps From: "Andrew Welch" <awelch@xxxxxxxxxxxxxxx> Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx To: "Xsl-List (E-mail)" <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> Subject: xpath // query Date: Wed, 24 Apr 2002 12:34:17 +0100 _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|

Cart



