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

[XSL] Footnotes Display

Subject: [XSL] Footnotes Display
From: Alice Wei <ajwei@xxxxxxxxxxx>
Date: Sat, 24 Nov 2007 09:43:46 -0500
 [XSL] Footnotes Display
Hi,

I am in the middle of producing something with footnotes of a particular section. The a tags are produced nicely, but I am having problems putting the heading around the page.

This is what I have in the XSLT:

   <xsl:template match="to_do">
       <xsl:apply-templates select="list"/>
       <xsl:call-template name="notes"/>
   </xsl:template>

     <xsl:template match="item">
           Some processing list the items
     </xsl:template>

<xsl:template name="notes">
       <div>
           <xsl:choose>
               <xsl:when test="p/@xml:id='authnote'">
                   <h3>Notes</h3>
                   <xsl:apply-templates/>
               </xsl:when>
               <xsl:otherwise>
                   <xsl:apply-templates/>
               </xsl:otherwise>
           </xsl:choose>
       </div>
   </xsl:template>

XML:

<to_do>
<item>See the Dentist</item>
<item>Return Library Book</item>
<item>Research about XSLT<ref target="authnote">*</ref></item>
</to_do>
<p xml:id="authnote">* Check out books on XPath 2.0 and XSLT 2.0 by Tennison, Kay published by Wrox.</p>


My plan is that the output for the footnte section in the notes template would be something like

<h3>Notes</h3>
<p>* Check out books on XPath 2.0 and XSLT 2.0 by Tennison, Kay published by Wrox.</p>


However, my current output is that the <h3> tag is placed above the <xsl:apply-templates/> Can anyone please tell me what I have done wrong here?

Thanks a lot for your help. I am using XSLT 2.0.

Alice

Alice Wei
School of Library and Information Science
Indiana University Bloomington

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.