Re: [xsl] n squared matching problem

Subject: Re: [xsl] n squared matching problem
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 9 Aug 2005 21:56:04 +0100
> I can envision a single-pass approach where the keys are hashed to a

xsl:key.

<xsl:key name="k" match="rawdata" use="key"/>

<xsl:template match="/">
  <xsl:for-each select="/information/selectedkeys/key">
   <xsl:for-each select="key('k',.)">
    Key <xsl:value-of select="key"/> matched <xsl:value-of select="value"/>
  </xsl:for-each>
 </xsl:for-each>
</xsl:template>

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

Current Thread