This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
More efficient way than following-sibling?
- From: "Michael Glick (B)" <MGlick at costargroup dot com>
- To: "'XSL-List at lists dot mulberrytech dot com'" <XSL-List at lists dot mulberrytech dot com>
- Date: Wed, 20 Mar 2002 14:45:37 -0500
- Subject: [xsl] More efficient way than following-sibling?
- Reply-to: xsl-list at lists dot mulberrytech dot com
I am trying to find a more efficient way to determine if a node has
siblings, and then access the next sibling.
Currently, I am running the following XSLT code:
<xsl:if test="$TheNode/following-sibling::node()">
<xsl:call-template name="GenericTemplate">
<xsl:with-param name="TheNode" select="$TheNode/following-sibling::*[1]"/>
</xsl:call-template>
</xsl:if>
However, this is very expensive, when it comes to large XML documents.
Does anyone know a more efficient way to do this?
--Michael Glick
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list