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 [email protected] ----- Original Message ----- From: Jason Zech To: [email protected] 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 | [email protected] LoyolaPress. | A Jesuit Ministry 3441 N. Ashland Ave. | Chicago, IL 60657 | www.loyolapress.com Join our online community of advisors: www.SpiritedTalk.org
