View Single Post
Old 04-26-2012, 06:29 AM   #5
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
My Xpath knowledge is poor but can you find a way to construct an expression which combines your level1 toc Xpath and level2 toc Xpath in an either/or Xpath expression and put it in the --chapter setting.

Alternatively, you could cheat! Create the epub with all the correct TOC entries at a single level, then edit the .ncx file (either manually or using a utility like Nigol's epubfixer utility) to nest the entries correctly and/or remove any unwanted entries.
jackie_w is offline   Reply With Quote