DTD declaration in epub files
Posted: Fri Jun 17, 2011 2:27 pm
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">