Subject: Re: [xsl] Optimization using keys From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Thu, 17 Feb 2005 12:17:39 -0500 |
So now i have
(identity transform)
<xsl:template match="Menu">
<xsl:choose>
<xsl:when test="count($snode)=1 and count(.|$snode)=1">
(get the document() nodes and insert then
</xsl:when>
<xsl:otherwise>
<xsl:copy>
<xsl:apply-templates select="*"/>
</xsl:copy>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
but it seems to take too much time to do this, with 300+ Menu nodes.
<xsl:when test="generate-id() = $snode-id"> (get the document() nodes ... ) </xsl:when>
Cheers, Wendell
====================================================================== 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] Optimization using keys, António Mota | Thread | Re: [xsl] Optimization using keys, António Mota |
[xsl] breaking xsl loop or template, Prasad Akella | Date | Re: [xsl] Optimization using keys, António Mota |
Month |