It seems to improve a little if i change my test to
<xsl:when test="count($snode)=1 and count(.|$snode)=1">
where
<xsl:variable name="snode" select="(//Menu)[number($pos)]"/>
but not *that* much...
Is that a global variable or a local one? It should be global.
Michael Kay
http://www.saxonica.com/
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--