View Single Post
Old 08-04-2011, 01:02 PM   #5
ldolse
Wizard
ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.
 
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
Xpath isn't my strong suit, but it looks like it would have worked if you hadn't touched anything in the 'Table of Contents' section.

Basically this:
Code:
//h:p[re:test(@class, "chapter", "i")]
Is probably screwing up the default TOC xpath in the structure detection section, which should detect your chapter headings by default.

If you get the structure detection/TOC settings right Calibre will generate an NCX for you.
ldolse is offline   Reply With Quote