#1132 inconsistent toc.ncx generation

output: ePub
closed-rejected
XSL (1066)
5
2010-09-19
2010-09-18
Oliver K. Smith
No

See attachments in ZIP archive.

The two XML source files are the same except that one has the following tag:

<book>

and the other the following:

<book xmlns="http://docbook.org/ns/docbook">

When both files are epub'ed, the generated toc.ncx files are different. The first file contains:

<content src="index.html"/>

while the second file contains:

<content src="ch01.html"/>

I have no idea what is happening.

The consequence of this is that titlepage/copyright information contained in

<book><info> ... </info></book>

is not accessible in the epub file.

A shell script is attached that generates the epub files.

Thanks.

Discussion

  • ZIP file containing example files

     
    Attachments
  • More info:

    When the root XML document does not have a xmlns attribute, the file index.html is referenced as expected in the toc.ncx file.

    When the root XML document has an xmlns attribute, the file index.html is *NOT* referenced as expected in the toc.ncx file. However, the index.html *IS* generated as expected in the OEBPS directory.

    When processed without an xmlns attribute, the following message appears:

    Note: namesp. add : added namespace before processing My EPUB book

    Thanks.

     
  • Keith Fahlgren
    Keith Fahlgren
    2010-09-19

    • labels: 1168228 --> XSL
    • status: open --> closed-rejected
     
  • Keith Fahlgren
    Keith Fahlgren
    2010-09-19

    Both documents are invalid. my-epub2.xml must not use db.firstname there and must not use an @id attribute (you need @xml:id).

    my-epub.xml is not a valid DocBook 4.5 document either, as db.info was introduced with DocBook 5.0 and namespacing. You need db.bookinfo, for example.

    After resolving these invalidities I was unable to reproduce.