View Single Post
Old 09-03-2018, 08:00 PM   #1
marvinn
Junior Member
marvinn began at the beginning.
 
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:
<p class="txtb2"> </p>
(That's a NO-BREAK SPACE between the p tags)

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:
<p class="txtb2" id="toc_2"> </p>
but none of the entries beyond id="toc_1" were added to the ToC.

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?
marvinn is offline   Reply With Quote