Bug 875129 - epub output generates HTML files with irregular DOCTYPEs (XHTML 1.0 Strict instead of XHTML 1.1)
Summary: epub output generates HTML files with irregular DOCTYPEs (XHTML 1.0 Strict in...
Alias: None
Product: Publican
Classification: Community
Component: publican
Version: 3.0
Hardware: Unspecified
OS: Unspecified
Target Milestone: 3.2
Assignee: Jeff Fearn 🐞
QA Contact: tools-bugs
Depends On:
TreeView+ depends on / blocked
Reported: 2012-11-09 15:26 UTC by Raphaël Hertzog
Modified: 2013-08-09 04:49 UTC (History)
3 users (show)

Fixed In Version: 3.2.0
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2013-08-09 04:49:23 UTC

Attachments (Terms of Use)

Description Raphaël Hertzog 2012-11-09 15:26:19 UTC
publican epub's output includes HTML files using "XHTML 1.0 Strict" as DOCTYPE when the recommendation for epub is apparently "XHTML 1.1".

This is diagnosed by epubcheck 3.0-RC1:

WARNING: /home/rhertzog/x/tdah/publish/en-US/Debian/6.0/epub/debian-handbook/Debian-6.0-debian-handbook-en-US.epub/OEBPS/debian-packaging.html: Irregular DOCTYPE: found '-//W3C//DTD XHTML 1.0 Strict//EN', expecting '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"

This error has been reproduced with the Debian Handbook:
$ git clone git://anonscm.debian.org/debian-handbook/debian-handbook.git

Comment 1 Jeff Fearn 🐞 2013-07-09 06:53:19 UTC
$ grep DOCTYPE build/en-US/epub/OEBPS/index.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

To ssh://git.fedorahosted.org/git/publican.git
   33e04d3..4dffa35  HEAD -> devel

Comment 2 HSS Product Manager 2013-07-09 06:57:33 UTC
HSS-QE has reviewed and declined this request. QE for this bug will be handled by IED.

Comment 3 Misha H. Ali 2013-07-22 00:07:00 UTC
Attempted to verify but steps to check problem are missing so unsure if this is correct procedure:

1. Check out a publican book from SVN.
2. Run "publican build --langs en-US --formats epub"
3. cd tmp/en-US/epub/OEBPS
4. Opened a random html file with gedit
5. Searched for "XHTML", found the following:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />


Looks like this is still XHTML 1.0 Strict. Setting bug back to ASSIGNED.

Comment 4 Misha H. Ali 2013-07-22 01:14:23 UTC
Sorry, looks like my publican has inexplicably reverted to the non-dev version over the weekend. Setting up dev version again to re-test this bug.

Comment 5 Misha H. Ali 2013-07-22 02:11:23 UTC
Fixed issue caused by yum update. Tested with publican-3.1.5-0.fc19.t62.noarch 

Followed steps from comment#3


Found the following information:

!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><html xmlns="http://www.w3.org/1999/xhtml">

Looks like XHTML version is 1.1 rather than 1.0 as expected.

Comment 6 Jeff Fearn 🐞 2013-08-09 04:49:23 UTC
The fix for this bug has been shipped in publican 3.2.0

Note You need to log in before you can comment on or make changes to this bug.