Hi Jason,
Yes, this is doable. The chunking templates
are kind of complicated, though, which makes it hard to generate an ad hoc
chunked file.
I would instead suggest that you create an empty
appendix element (perhaps with title) and a role="endnotes" attribute.
Just being an appendix element will trigger making it into a chunk. Then
you would need a template that matches on your appendix with role and fills in
the content with the end notes.
The chunking stylesheet works at two levels for
each chunk: content and chunking wrapper. You have to keep these two
functions separate or your chunking may not work. See this doc for
details:
http://www.sagehill.net/docbookxsl/ChunkingCustomization.html
In this case, you want the standard chunking
behavior for an appendix, but you want to alter its content. Therefore,
your custom template just needs to handle the content and not try to deal with
the chunking process. That means it needs to be in the "mydocbook.xsl"
part of the customization described in that doc.
Let me know if you need further
clarification.
Bob Stayton
Sagehill Enterprises
----- Original Message -----
From:
Jason
Zech
To:
Sent: Monday, July 11, 2011 7:32 AM
Subject: [docbook-apps] endnotes section
in ePub
Hi all,
I am trying to create an ePub file of my docbook
<book> in which all the footnotes are gathered together and output in a
separate HTML/XHTML. I’d also like these endnotes, of course, to link back to
the text where the footnote marker appears.
Basically, my book has 150 or so short chapters with
footnotes in each chapter, and instead of chunking those footnotes at the end
of each chapter, I’d like to chunk them at the end of the book.
Is this a relatively doable customization?
I have a customization on my single-file HTML transform
that gathers all endnotes for the book and puts them at the end of the file.
But when I repurpose this customization in the epub transform, the footnotes
are all gathered up but there is no output. (I’m guess its because the
transform doesn’t create a new page and put them there.)
Thanks in advance for any help.
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