Community
Participate
Working Groups
The **xhtmlstrict** attibute for the **wikitext-to-html** Ant task allows you to specify that the output should be XHTML. This declares the doctype to be http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd which is version 1.0. The EPUB specifications recommends that the XHTML is version 1.1, which should be doctype http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd. This would normally not be a problem except that different default values apply and certain tools, such as Adobe's __epubcheck__ thus requires that documents are in XHTML 1.1 (which is why bug #33122 depends on this one). See also http://code.google.com/p/epubcheck/issues/detail?id=1. The actual problem lies in the fact that __ebubcheck__ will invalidate otherwise valid documents due to certain default values being applied – these may not be supported by reading systems only conforming to the specification. re There could be an extra option to the Ant task allowing you to declare which version the output conforms to, or we could take take the long way and make sure it confirms to either version. I would go for an extra doctype attribute in the Ant task. While it may not be correct with regards to the output the task actually produces, it is up to the user to make sure.
It's possible to specify the doctype via the @htmlDoctype@ attribute. If that's not sufficient, I suggest that you indicate specifically each instance of a problem with the output. If you're inclined on creating patches, you can see how xhtmlStrict is applied in HtmlDocumentBuilder.
Thanks David. I missed that one as I for some reason was using the Galileo version of the documentation. Closing as INVALID.