I'm having trouble converted Calibre generated LIT files to IMP.
There are three problems.
1) The LIT2SB tool is having problems with the CSS file. Calibre is using an tag called
@namespace h "http://www.w3.org/1999/xhtml";
Since it doesn't understand this it is showing up in the generated IMP file.
2) The order of the content page is incorrect. The tool assumes the <manifest> data will be in sequential order and process the IMP OPF that way. Calibre's OPF file does is not in sequential order but properly laysout the the ID in the <spine> tag so that the order is correct. This results in chapters, TOC, and cover pages to be shuffled around in the IMP book.
3)The cover.htm file assumes an image Cover_SB.jpg but this file is not created. However there is a cover.jpg and it is in calibre's OPF file.