[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] understanding key usage


Subject: [xsl] understanding key usage
From: Osman Çınar Eren <Cinar.Eren@xxxxxxxxxxxxx>
Date: Mon, 22 Nov 2004 14:25:04 +0200

Hi,

is there a difference between the following?

<xsl:key name="dkey" match="B" use="key"/>
  <xsl:for-each select="value/B[generate-id()=
generate-id(key('dkey','USD')[1])]">

and

<xsl:for-each select="value/dovizler[key='USD']">

in my opinion, both of these correspod to B elements whose 'key' values are
equal to 'USD'.

any ideas?
regards.


Current Thread