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...
On Wed, 16 Feb 2005 19:39:39 +0000, António Mota <amsmota(_at_)gmail(_dot_)com>
wrote:
I'm also trying to optimize this template
(indentity template)
<xsl:template match="Menu">
<xsl:choose>
<xsl:when
test="count(./ancestor-or-self::Menu)+count(./preceding::Menu)=number($pos)">
--~------------------------------------------------------------------
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>
--~--