[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: configuring a conditional

Subject: Re: configuring a conditional
From: Bruce D'Arcus <bdarcus@xxxxxxxxx>
Date: Tue, 24 May 2005 12:54:29 -0400
Re:  configuring a conditional
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.