[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: [docbook-apps] EPUB3 default stylesheet throws NCX error
(I'm running on OSX Lion and I've referenced the stylesheets directly for these examples)
$ xsltproc http://docbook.sourceforge.net/release/xsl/1.78.1/epub3/chunk.xsl test.xml
... Generating NCX file ... Request for title of element with no title: div (id="idp704") Request for title of element with no title: code (contained in ) Writing OEBPS/toc.ncx for book The NCX has an error in the title; <docTitle><text>My First Book???TITLE??????TITLE???</text></docTitle> Also, the OPF has two extra itemref entries at the end of the <spine>.If however I remove xmlns from the <book> node, it then works fine; <book version="5.0">
This solution is obviously wrong as the XML then fails validation;$ xmllint --relaxng http://www.docbook.org/xml/5.0/rng/docbookxi.rng --noout test.xml
test.xml:2: element book: Relax-NG validity error : Expecting element set, got book test.xml:2: element book: Relax-NG validity error : Expecting a namespace for element book test.xml:2: element book: Relax-NG validity error : Did not expect element book there test.xml:2: element book: Relax-NG validity error : Expecting element section, got book test.xml:2: element book: Relax-NG validity error : Expecting element setindex, got book
test.xml fails to validatePerhaps it's related to my system - can I ask if anyone else gets the same errors?
I haven't done any XSLT programming in four years and I'm new to Docbook, so I want to make sure I have everything set up correctly before I start customising.
Many thanks, Mike Cook Example used; <?xml version="1.0" encoding="utf-8"?> <book xmlns="http://docbook.org/ns/docbook" version="5.0"> <info> <title>My First Book</title><author><personname><firstname>Jane</firstname><surname>Doe</surname></personname></author>
<copyright><year>2010</year><holder>Jane Doe</holder></copyright> </info> <chapter> <title>Chapter 1</title> <para>Paragraphs</para> </chapter> </book>
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]