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

misc. confusion on "footnote" handling

Subject: misc. confusion on "footnote" handling
From: Bruce D'Arcus <bdarcus@xxxxxxxxxxxxx>
Date: Tue, 24 Aug 2004 19:13:47 -0400
footnote within a footnote
Am not sure how to tackle this.

Simple example:

<para>
  Standard citation: <citation><biblioref linkend="one"/></citation>.
  Citation in a footnote: <footnote><para>And another citation
    <citation><biblioref linkend="two"/></citation></para></footnote>
</para>

So, I have a regular citation, and a citation within a footnote.

The problem:

I want a parameter -- called citation-class -- where one option is author-year (what I've been working on), and another is "footnote."

When the parameter is set to footnote, all citations get treated as if they were a footnote (e.g. they become footnoted on output), unless they are already in a footnote, in which case they just get rendered.

I'm thinking I need to be doing something like this:

<xsl:template match="db:footnote|db:citation">
  <xsl:choose>
    <xsl:when test="$class='footnote'">
      ...
    </xsl:when>
    <xsl:otherwise>
      ...
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>

But I'm not sure quite what to do next, or b) if there a better way to do this? Maybe somehow using modes?

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.