Re: configuring a conditional
As Wendell said you want the linkend attribute of your $cite-ref element
That's what I have:
<xsl:if test="$cite-ref is key('refs',$cite-ref/@linkend)">FIRST</xsl:if>
incidentally it looks like that code requres $cite-ref to be a single element node, but you have declared it as
Yes, I think I had a comment there that indicated I originally defined it as just element(), but in one case (when I was formatting an entire book manuscript), I got an error about an empty sequence. Am not sure how that's possible in this case, but I just added that. I suppose a better hack would be "element()?"?
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format