|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: configuring a conditional
On May 24, 2005, at 11:54 AM, Wendell Piez wrote:
I see from your code that that will be a mods:mods element. Does it have a @linkend (does it have the correct one?). No. It has an @ID that corresponds to the db:biblioref/@linkend value. This is why I pass the cite-ref parameter, which is the db:biblioref element that corresponds to the @ID. So, I start with the citation, then quickly move to dealing with the metadata records that they are pointing to, since formatting depends on that information. But I need to still keep track of the original biblioref element too! If it's not otherwise clear (and even if it is), this can be checked fairly easily by including an <xsl:value-of select="@linkend"/> in your message, to tell whether @linkend is what it should be. That's the odd thing. Changing this message to this: <xsl:message>
<xsl:value-of select="$cite-ref/@linkend"/>:
<xsl:if test="$cite-ref is key('refs',@linkend)[1]">FIRST</xsl:if>
</xsl:message>... does get the expected linkend values back. So the context is correct there with $cite-ref. Bruce
|
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








