Re: [xsl] configuring a conditional

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

But since you're using that newfangled 2.0-thang, you could do

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


Note the third argument to establish the document context for key().

Aha; bingo! Thanks!


Followup question while I have your guys' attention:

What if I need to track ibids, which are defined as single reference citations that are exactly the same as the preceding citation?

So the second citation here would be true, while the third would be false:

<p><citation><biblioref linkend="doe99"/></citation>.
<footnote><citation><biblioref linkend="doe99"/></citation></footnote></p>
<p><citation><biblioref linkend="doe99"/><biblioref linkend="smith2000"/></citation></p>


Am I also using the key here?

Bruce

Current Thread