RE: [xsl] Newbie Key Function issue

Subject: RE: [xsl] Newbie Key Function issue
From: Kurt Geiger <kgeiger@xxxxxxxxxxxxxx>
Date: Fri, 6 Jul 2001 10:47:49 -0400
I saw that after the email was sent I made the change and it is much more
efficient.  Thanks!! 

-----Original Message-----
From: Michael Kay [mailto:mhkay@xxxxxxxxxxxx]
Sent: Friday, July 06, 2001 10:47 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE: [xsl] Newbie Key Function issue

>  The Key function works well but it is so SLOWWWWWWWW.  Can anyone
> take a look below
> and see if there is anyway to refine or filter my lookup in
> order to speed this process up??

> <xsl:key name="ODCust" match="Entity" use="//Entity/EntityId/@value" />

I'm amazed it works at all. You are indexing every Entity element by the
value of every Entity/EntityId/@value in the document. You want to index it
only by the value for that Entity, which is

<xsl:key name="ODCust" match="Entity" use="EntityId/@value" />

Mike Kay
Software AG

 XSL-List info and archive:

 XSL-List info and archive:

Current Thread