Subject: Re: [xsl] More efficient way than following-sibling? From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Wed, 20 Mar 2002 16:26:24 -0500 |
<xsl:template match="*" mode="generic"> ... </xsl:template>
Cheers, Wendell
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
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] More efficient way than f, Michael Kay | Thread | [xsl] Wrox book still the best xslt, David LeBlanc |
RE: [xsl] Wrox book still the best , Bruce Kyle | Date | Re: [xsl] More efficient way than f, Peter Davis |
Month |