On 12/18/21 07:38, Patrice Dumas wrote:
The idea is that it would be set if doing XHTML 1.1, be it for epub or
as an output, as it is a prerequisite for epub if I understood right.

For now, my plan is to do XHTML1.1 as a separate init file.

Why? XHTML 1.1 is an obsolete format.  It is not required for EPUB 3.x,
which is a 10-year old specification.

EPUB does requires content document to be XML:
http://idpf.org/epub/30/spec/epub30-contentdocs.html#sec-xhtml

However, my reading of the spec finds no indications that custom data 
attributes are
disallowed.  It notes that data attributes must be stripped before being fed
to a validator - which implies that they are allowed, but the validator does 
not handle them:
http://idpf.org/epub/30/spec/epub30-contentdocs.html#app-xhtml-schema

So my recommendation is: Just leave the data attributes in, even for XHTML/EPUB.

I think my previous poposal is still reasonable:
https://lists.gnu.org/archive/html/bug-texinfo/2021-09/msg00000.html
--
        --Per Bothner
p...@bothner.com   http://per.bothner.com/

Reply via email to