Re: [xsl] sequential navigation problem (long)

Subject: Re: [xsl] sequential navigation problem (long)
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 5 Dec 2002 23:01:53 GMT
> it may be quicker if you use keys.
something like
<xsl:key name="next" match="PART|CHAP|....." use="generate-id(... path
to the next one ...)"/>

your .. path to the next one ..might be quicker if you explictly looked
for

next child
child next sibling
or next cousin

and avoid the descendent and following axese which might be slow, ie
replace
  (descendant::* | following::*)
by
(*[1]|following-sibling::*[1]|../following-sibling::*[1]/*[1])

David






_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.

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


Current Thread