|
|
#1 |
|
Member
![]() 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> Code:
//*[re:test(@id, "bookmark.*", "i")] |
|
|
|
|
|
#2 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,598
Karma: 28548962
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Match the parent of that tag, something like
//*[re:test(@id, "bookmark.*", "i")]/.. |
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Member
![]() Posts: 20
Karma: 30
Join Date: Sep 2010
Device: Kindle 3
|
Thanks Kovid, that did the trick!
Some day I'll actually learn regex... |
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Problem generating TOC | ronin712 | Calibre | 11 | 09-06-2015 11:53 PM |
| Help generating TOC | Diabolikul | Conversion | 3 | 01-26-2012 10:42 AM |
| New Calibre isn't generating TOC | ccraig13 | Conversion | 2 | 10-07-2011 09:58 AM |
| TOC - Kindle - Not Generating | superted | Conversion | 2 | 05-15-2011 07:28 AM |
| Trouble generating a TOC | foghat | Calibre | 2 | 05-07-2010 06:00 PM |