View Single Post
Old 10-17-2010, 07:28 PM   #4
toddos
Guru
toddos ought to be getting tired of karma fortunes by now.toddos ought to be getting tired of karma fortunes by now.toddos ought to be getting tired of karma fortunes by now.toddos ought to be getting tired of karma fortunes by now.toddos ought to be getting tired of karma fortunes by now.toddos ought to be getting tired of karma fortunes by now.toddos ought to be getting tired of karma fortunes by now.toddos ought to be getting tired of karma fortunes by now.toddos ought to be getting tired of karma fortunes by now.toddos ought to be getting tired of karma fortunes by now.toddos ought to be getting tired of karma fortunes by now.
 
toddos's Avatar
 
Posts: 694
Karma: 822675
Join Date: May 2010
Device: Kobo Aura, Nokia Lumia 920 (Freda)
http://calibre-ebook.com/user_manual/xpath.html

You'll probably want to do a conversion with debugging turned on (it's in the conversion dialog, the little ladybug icon on the left -- just pick a folder you'll remember). Do the conversion and then look at the generated HTML file to figure out what element your headings are being generated as. Hopefully you'll have some h3 or h4 elements in there (obviously no h1 or h2 elements are being found or the standard chapter xpath would've already worked). You might find that the elements are div or p elements with a class only used for headings so you could break on that instead.
toddos is offline   Reply With Quote