![]() |
#1 | ||
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Sep 2018
Device: Kindle Voyage
|
Generate ToC from XPath Problem
I'm trying to create a table of contents based on XPath and running into a problem.
Every chapter is preceded by Quote:
However, when I try to use the ToC editor wizard to add entries for HTML tag = p Attribute = class Value = txtb2 only the first chapter gets an entry in the resulting ToC, every other instance is ignored. When I close the ToC editor, the code of the book gets updated so that each tag has been updated to something like: Quote:
I created a ToC for another ebook with the same structure a few months ago with no problems, but maybe I've forgotten a subsequent step in the meantime. Can anyone help? |
||
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,331
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Sep 2018
Device: Kindle Voyage
|
Thanks, Kovid. About an hour after posting I went and looked at the changelog for calibre and noticed that the behavior had in fact changed in the last version in the month between my book editing sessions. I temporarily downgraded to 3.29 to generate the ToC I needed.
I submitted a ticket requesting the XPath ignore duplicates to be an optional feature. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
inline ToC via XPath? | chaot | Sigil | 22 | 03-20-2017 10:06 PM |
TOC from XPath | Paulie_D | Editor | 5 | 05-26-2015 02:55 PM |
Nested TOC / Xpath question | halfgone | Conversion | 0 | 02-13-2012 07:46 PM |
Calibre's XPath implementation for TOC detection | tram | Calibre | 11 | 11-26-2010 04:14 PM |
Xpath TOC Expression | Agama | Calibre | 2 | 07-12-2010 02:24 AM |