View Single Post
Old 02-03-2009, 06:28 PM   #5
llasram
Reticulator of Tharn
llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.
 
llasram's Avatar
 
Posts: 622
Karma: 400000
Join Date: Jan 2007
Location: EST
Device: Sony PRS-505
Quote:
Originally Posted by MacZap View Post
I wish to build a TOC (in Mobi or Epub files) by creating a Xpath expression that recognize these tags.
For formats like OpenOffice documents, calibre first converts the file to XHTML. Your XPath expression needs to be in terms of the XHTML calibre generates. To look at that XHTML and figure out the expression you need, create an EPUB file, then unzip it and look at the HTML it contains. (The EPUB container is just a ZIP file, so you can unzip it with the tool of our choice.)
llasram is offline   Reply With Quote