DTD declaration in epub files
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 37
- Joined: Wed Dec 23, 2009 6:13 am
DTD declaration in epub files
When I transform valid XML files using the DocBook 5 stylesheets, I get a DTD declaration just after the “<?xml version="1.0" encoding="utf-8" standalone="no"?>” declaration in content.opf, toc.ncx and container.xml files. All the XHTML files that are generated also contain the DTD, but it seems this doesn't pose any validation problems. I am running the transformation in oXygen 12.2 using the docbook 1.76.1 epub stylesheets (not the built-in ANT transformation) and Saxon 6.5.5. Has anyone come across this?
Code: Select all
Content.opf
<!DOCTYPE package
PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
Toc.ncx
<!DOCTYPE ncx
PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
Container.xml
<!DOCTYPE container
PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: DTD declaration in epub files
Post by sorin_ristache »
Hello,
There is a bug report with that problem opened in the Docbook XSL project. If you submit a vote or comment on that bug the project maintainers may increase its priority.
Regards,
Sorin
There is a bug report with that problem opened in the Docbook XSL project. If you submit a vote or comment on that bug the project maintainers may increase its priority.
Regards,
Sorin
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: DTD declaration in epub files
Post by sorin_ristache »
I also sent the details for reproducing it:
-- DocBook XSL version 1.76.1 (latest version)
-- any Docbook XML file, for example:
-- the command line:
The wrong DOCTYPE declaration is inserted with both the Saxon 6.5 processor and the Xalan one.
Regards,
Sorin
-- DocBook XSL version 1.76.1 (latest version)
-- any Docbook XML file, for example:
Code: Select all
<article xmlns="http://docbook.org/ns/docbook" version="5.0">
<info>
<title>Article Template Title</title>
</info>
<sect1>
<title>Section1 Title</title>
<subtitle>Section1 Subtitle</subtitle>
<para>Text</para>
</sect1>
</article>
Code: Select all
java -cp lib\saxon.jar com.icl.saxon.StyleSheet -o sample.epub docbook-epub-sample.xml docbook\xsl\epub\docbook.xsl
The wrong DOCTYPE declaration is inserted with both the Saxon 6.5 processor and the Xalan one.
Regards,
Sorin
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service