Hi Lars, I know this is from a long time ago, but I just ran into the same problem with a file that nests variable lists using the list-presentation=“blocks” processing instruction.
In that case, the XHTML5 (this is with 1.79.2, building an epub3) is valid, but kindlegen doesn’t like the nesting. It closes off the highest level <dl> and <dd> elements and flags some <dt> elements as being invalid. The result doesn’t lose any content, but it removes the nesting and flattens everything to one level. As with your case, the epub is valid and when displayed, the nesting is fine. At this point, I’m convinced that the problem is in kindlegen. I just used the Kindle previewer, which wasn’t available in 2012, and it created a .mobi file that preserves the nesting (at least on the devices I tried in the previewer). Anyway, this is probably way to late to help, but I figured I’d add it to the thread in case someone runs into it in the future, since it is still a problem using kindlegen. Best regards, Dick Hamilton ------- XML Press XML for Technical Communicators http://xmlpress.net [email protected] > On Jul 12, 2012, at 01:00, Lars Vogel <[email protected]> wrote: > > Hi Jason, > > thanks for the pointer, I try to dig into the problem. > > Best regards, Lars > > 2012/7/10 Jason Zech <[email protected]>: >> This sounds like a bizarre problem I had a few months ago. I tracked it down >> to my toc.ncx not matching up with toc.html, or something like that. Your >> issue may be different, but it’s an idea. >> >> >> >> From: Bob Stayton [mailto:[email protected]] >> Sent: Tuesday, July 10, 2012 10:54 AM >> To: Lars Vogel; DocBook Apps >> Subject: Re: [docbook-apps] Converting Docbook epub to Kindle shows warnings >> >> >> >> I have also seen those messages and don't understand what they mean. When I >> check the XHTML file in Oxygen, it reports that it is well-formed and valid, >> so there are no missing tags that need to be "Forcefully closed". >> >> >> >> Your output appears to be from the epub stylesheet. You might try the epub3 >> stylesheet in version 1.77.1 of the stylesheets. It does not use <dl> for >> the TOC, so kindlegen does not report those <dl> errors. However, kindlegen >> still Forcefully closes the valid <nav epub:type="loi"> and <nav:epub:lot> >> elements in the TOC file. >> >> >> >> Bob Stayton >> Sagehill Enterprises >> [email protected] >> >> >> >> >> >> ----- Original Message ----- >> >> From: Lars Vogel >> >> To: DocBook Apps >> >> Sent: Tuesday, July 10, 2012 1:53 AM >> >> Subject: [docbook-apps] Converting Docbook epub to Kindle shows warnings >> >> >> >> Hello, >> >> I'm using Apache Ant to create an epub with the XSL stylesheets. This >> works fine. >> >> During the conversion to .mobi via the Amazon command line tool >> kindlegen I get several warnings which may indicate that the generated >> epub has some issues. See below for the error messages. I attached the >> file in question. I noted that in the Kindle version several TOC >> entries are in the same line: I think this might be the reason for >> this. >> >> Has anyone seen such issues and know how to solve them? >> >> Best regards, Lars >> >> Warning(inputpreprocessor):W29004: Forcefully closed opened Tag: <dl> >> in file: /tmp/mobi-v0Xfht/OEBPS/bk01-toc.html line: 0000004 >> Warning(inputpreprocessor):W29004: Forcefully closed opened Tag: <dd> >> in file: /tmp/mobi-v0Xfht/OEBPS/bk01-toc.html line: 0000004 >> Warning(inputpreprocessor):W29010: Tag rejected due to being used in >> unauthorized scope: <dt> >> in file: /tmp/mobi-v0Xfht/OEBPS/bk01-toc.html line: 0000004 >> Warning(inputpreprocessor):W29010: Tag rejected due to being used in >> unauthorized scope: <dd> >> in file: /tmp/mobi-v0Xfht/OEBPS/bk01-toc.html line: 0000004 >> Warning(inputpreprocessor):W29010: Tag rejected due to being used in >> unauthorized scope: <dt> >> in file: /tmp/mobi-v0Xfht/OEBPS/bk01-toc.html line: 0000005 >> Warning(inputpreprocessor):W29010: Tag rejected due to being used in >> unauthorized scope: <dd> >> in file: /tmp/mobi-v0Xfht/OEBPS/bk01-toc.html line: 0000005 >> Warning(inputpreprocessor):W29004: Forcefully closed opened Tag: <dl> >> in file: /tmp/mobi-v0Xfht/OEBPS/bk01-toc.html line: 0000005 >> Warning(inputpreprocessor):W29004: Forcefully closed opened Tag: <dd> >> in file: /tmp/mobi-v0Xfht/OEBPS/bk01-toc.html line: 0000005 >> >> ________________________________ >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
