xsl-list
[Top] [All Lists]

Re: configuring a conditional

2005-05-24 09:54:29

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


--~------------------------------------------------------------------
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>