Next in thread → Next in month →

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

From
"Cob Rtayton"
Date
2011-06-13T15:47:14+00:00
ID
001f01cc29e1$26898970$4501a8c0@pazu
Thread
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


 

 

  
----- Original Message ----- 

  
From: 
  Jason 
  Zech 

  
To:  
  

  
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 | 

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