View Single Post
Old 05-03-2012, 06:53 AM   #1
Bad Astronaut
Member
Bad Astronaut began at the beginning.
 
Posts: 20
Karma: 30
Join Date: Sep 2010
Device: Kindle 3
Generating TOC Section Names

I have an epub with section tags as follows:

Code:
<p class="calibre1"><a id="bookmark6" class="calibre2"></a>Introduction</p>
Other sections have random text names. I can recognize the sections using the expression
Code:
//*[re:test(@id, "bookmark.*", "i")]
However the sections are all called "Unnamed". I can see why, the text I'm after (eg. Introduction) is in a different tag than the one I'm searching for. Is there a way to get calibre to pick up the section names in this case?
Bad Astronaut is offline   Reply With Quote