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
[email protected] http://per.bothner.com/