Re: Not grokking keys...

Subject: Re: Not grokking keys...
From: James Clark <jjc@xxxxxxxxxx>
Date: Thu, 22 Apr 1999 20:11:37 +0700
Maybe this will help. Given a declaration

  <xsl:key name="d" match="div" use="title"/>

then

  <xsl:value-of select="keyref('d',@ref)"/>

will do the same as

  <xsl:variable name="t" expr="@ref"/>
  <xsl:value-of select="//div[title=$t]"/>

(assuming a div element has one title child).

James


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


Current Thread