xsl-list
[Top] [All Lists]

Re: xsl:key

2003-09-24 07:06:22
forget that stupid error!!!!

----- Original Message ----- 
From: <andrew(_dot_)curry(_at_)pa(_dot_)press(_dot_)net>
To: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Sent: Wednesday, September 24, 2003 2:58 PM
Subject: xsl:key


Hi, im haveing a few problems using xsl:key and touch wood somewhere out
there may be able to help.

Basically i have a list of elements

<tournament-round round-number="1" round-name="Round 1">
                <tournament-group-golf groupid="1" starting-hole="1"
tee-off-
time="0900+0100" course-id="215">
....................

And i want to list through these filtering using round-number and
courseid.

I hoped using a key statement instead of a foreach would be possible and
tried....

        <xsl:key name="byGroupId" match="//tournament-group-golf"
use="concat
(ancestor::tournament-group-golf/@round-number, '-', ./@course-id)"/>

<xsl:for-each select="key('byGroupId','1-215')">

Can anyone see anything fundermentally wrong?

Cheers



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>
  • Re: xsl:key, andrew . curry <=