[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] [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
|
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
|