OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] Change footnote/endnote grouping level


Hi Jason,
It looks like you would  need to customize two templates to get your results.  You would need to customize the template that matches on book, from html/division.xsl, to add at the end:
 
<xsl:call-template name="process.footnotes"/>
 
Then you would need to customize the template named 'process.footnotes' from html/footnote.xsl.  That template starts with:
 
<xsl:variable name="footnotes" select=".//footnote"/>
 
which selects all the footnotes in the current element.  Since the templates for chapter and such also call that template, you would need to make its action depend on its context.
 
<xsl:if test="local-name(.) = 'book'">
   ... do the footnote  stuff
</xsl:if>
 
Since the function is local-name(), you don't need (or want) to add the d: namespace prefix when using DocBook 5.
 
Bob Stayton
Sagehill Enterprises
bobs@sagehill.net
 
 
----- Original Message -----
From: Jason Zech
Sent: Monday, June 13, 2011 8:06 AM
Subject: [docbook-apps] Change footnote/endnote grouping level

Hi,

 

Iím working on a <book> document (several files pulled together with Xinclude) with dozens of <chapters>. Iím outputting to a single HTML file via docbook-xsl-ns. I have a footnote in every chapter, and in single-file HTML output, the each footnote is grouped at the end of each chapter.

 

For the purposes of my book, Iíd like to group ALL footnotes for the entire book at the end of the HTML file (they would come last--endnotes, really) with links created between them. Is there a relatively simple way to customize the HTML output for this? I see some instructions in Bobís book for making endnotes in FO, but I donít really see how to translate those instructions to single-file HTML.

 

Any help is greatly appreciated.

 

Thank you.

 

jz

 

Jason Zech | Project Manager, Digital Workflow | New Product Development
[ph] 773-281-1818 x212   [fax] 773-281-4129 | zech@loyolapress.com

LoyolaPress. | A Jesuit Ministry
3441 N. Ashland Ave. | Chicago, IL 60657 | www.loyolapress.com
Join our online community of advisors: www.SpiritedTalk.org

 



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]