bug-texinfo
[Top][All Lists]
Advanced

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

Re: texi to epub


From: Per Bothner
Subject: Re: texi to epub
Date: Wed, 15 Dec 2021 17:21:26 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.0



On 12/15/21 12:43, Patrice Dumas wrote:
I could have a try, but before I would like to have an XHTML
command-line offline validator, is there something like that existing?

The critical first step is generating "well-formed XML".  I.e.
basic lexical/syntactic correctness, ignoring semantic constraints 
("validation").
Most critical is no elements without closing tags.  For example <hr>
must be either <hr></hr> (valid XML, not valid HTML) or <hr/> (valid either).

Emiotting <hr/> has the advantage that it is correct for both XML and (modern) 
HTML.

Once this is taken care of, we're a big step there.

Emacs nxml mode should be sufficient to check well-formedness.
--
        --Per Bothner
per@bothner.com   http://per.bothner.com/



reply via email to

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