[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: texi to epub

From: Jacob Bachmeyer
Subject: Re: texi to epub
Date: Sat, 18 Dec 2021 20:11:55 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20090807 MultiZilla/ SeaMonkey/1.1.17 Mnenhy/

Patrice Dumas wrote:
On Sat, Dec 18, 2021 at 01:58:30PM -0800, Per Bothner wrote:
On 12/18/21 13:01, Patrice Dumas wrote:
It seems that it does not change the work required compared to XHTML 1.1
which is to have a correct XML document.  Something I cannot find,
however, is what to put at the beginning to be able to check validity
of the resulting document if it is HTML5 XML.  Can you please tell me?
As far as I can tell, you don't need to put anything at the start:
A validator should allow you to specify what you want to validate against.

This should be OK:

  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE html>

I tried that with the https://validator.w3.org/, also using .xhtml as
extension as it seems that it is what makes the w3c validator consider
that it is XML, with and without <?xml?>, and I get:
    Schema Error: XML document with no namespace; cannot determine any schema 
to use for validation.

Any idea on what is wrong?

HTML validation requires a DOCTYPE that specifies a DTD. XML validation requires the "xmlns" declarations linking XML namespaces to schemas. HTML5 eschews any schema declaration at all because WHATWG (if I remember their name correctly) decided to "move fast and break things" instead of properly versioning their standards.

This is the reason I oppose the use of HTML5 for documentation and favor keeping the "obsolete" HTML4 and/or XHTML1.1 formats.

-- Jacob

reply via email to

[Prev in Thread] Current Thread [Next in Thread]