From: SourceForge.net <no...@so...> - 2011-08-28 09:24:33
|
Bugs item #3353537, was opened at 2011-07-04 10:27 Message generated for change (Settings changed) made by mzjn You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=373747&aid=3353537&group_id=21935 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: XSL Group: output: ePub Status: Open Resolution: None Priority: 5 Private: No Submitted By: Sorin Ristache (sorin_ristache) Assigned to: Nobody/Anonymous (nobody) >Summary: epub: Wrong DOCTYPE declaration in files of ePub output Initial Comment: I create ePub output from the attached DocBook 5 XML file using DocBook XSL 1.76.1. The output ePub file is not valid because the files content.opf, toc.ncx and container.xml contain a wrong DOCTYPE declaration. The content.opf.file starts with: <!DOCTYPE package PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> and the toc.ncx file starts with: <!DOCTYPE ncx PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> and container.xml starts with: <!DOCTYPE container PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> This is wrong because they are not XHTML files. I get the same wrong DOCTYPE declaration with both the Saxon 6.5 transformer and the Xalan one. I used the following command lines for creating the output ePub file: - Saxon 6.5: java -cp saxon.jar com.icl.saxon.StyleSheet -o output.html docbook5.xml docbook1.76.1/xsl/epub/docbook.xsl - Xalan: java -cp xalan.jar org.apache.xalan.xslt.Process -out output.html -in docbook5.xml -xsl docbook1.76.1/xsl/epub/docbook.xsl ---------------------------------------------------------------------- Comment By: Sorin Ristache (sorin_ristache) Date: 2011-07-11 08:16 Message: I tried both the Saxon command line and the Xalan one with both the NS (namespace-stripping) version of the DocBook XSL 1.76.1 stylesheets and the simple version (no namespace stripping). The wrong DOCTYPE declarations inserted at the beginning of the files are the same in all cases. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=373747&aid=3353537&group_id=21935 |