xsl-list
[Top] [All Lists]

Re: configuring a conditional

2005-05-24 09:35:39

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


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>