Re: [xsl] configuring a conditional

Subject: Re: [xsl] configuring a conditional
From: Bruce D'Arcus <bdarcus@xxxxxxxxx>
Date: Tue, 24 May 2005 12:35:39 -0400
On May 24, 2005, at 12:11 PM, Wendell Piez wrote:

Change that test to "$cite-ref is key('refs',$cite-ref/@linkend)[1]" and you should be fine. (And I think that's what I guessed before. :-)

Yes, sorry about that. I didn't at first try that because you mentioned it in the context of a function. After sending that message, though, I did try it, but am still not getting expected results on the FIRST thing.


So I have this:

<xsl:message>
<xsl:value-of select="name($cite-ref)"/>:
<xsl:value-of select="$cite-ref/@linkend"/>:
<xsl:if test="$cite-ref is key('refs',$cite-ref/@linkend)[1]">FIRST</xsl:if>
</xsl:message>


... which gets me:

biblioref:
      TimesP2001a:

biblioref:
      Veer1996a:

biblioref:
      Tilly2000a:

biblioref:
      Tilly2002a:

biblioref:
      NW2000-0207:

biblioref:
      NW2000-0424a:

biblioref:
      Tremblay2001a:

biblioref:
      Thrift1990a:

biblioref:
      Tilly2000a:

None of them are returning "FIRST."

Bruce

Current Thread