This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Newbie Key Function issue
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] Newbie Key Function issue
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Fri, 6 Jul 2001 15:47:17 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
> 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: http://www.mulberrytech.com/xsl/xsl-list