|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: configuring a conditional
Bruce,
At 12:22 PM 5/24/2005, you wrote: That's what I have: Well if the @linkend is correct, the next things to check are the key declaration and the document context. Since I gather your call to key() is happening in a document context that doesn't contain your $cite-ref (the mods:mods current node is in a separate tree), you'll need to establish the correct context for your call to key(). In the old days this would have been <xsl:for-each select="$cite-ref">
<xsl:if test="count(.|key('refs',@linkend)[1])=1">FIRST</xsl:if>
</xsl:for-each>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(). I hope that helps, Wendell
|
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
|

Cart








