[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:13:49 -0400
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

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.