[Top][All Lists]

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

Re: texi to epub

From: Jean-Christophe Helary
Subject: Re: texi to epub
Date: Sun, 19 Dec 2021 11:25:00 +0900

> On Dec 19, 2021, at 11:11, Jacob Bachmeyer <jcb62281@gmail.com> wrote:
> 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:
>>> https://html.spec.whatwg.org/multipage/xhtml.html#the-xhtml-syntax
>>> 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.

Sure, but Patrick is not (if I understand correctly) trying to have exported 
documents validate properly in general, but to have some kind of internal 
validation now while he develops the new output.

Once that is acquired, and we can declare that texinfo output is whatever form 
of HTML that's been chosen here I fail to see why using "html" is wrong or 

Jean-Christophe Helary @brandelune

reply via email to

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