I'm thinking a customization variable XML_OUTPUT_MODE

-c XML_OUTPUT_MODE "html"
  [current default]
  Generate HTML files, with .html file names.
  Follow HTML specification and recommendations.

-c XML_OUTPUT_MODE "xhtml"
  Generate XHTML files (i.e. XML), with .xhtml file names.
  Follow XHTML specification.

-c XML_OUTPUT_MODE "polyglot" [or many "compatible"]
  [maybe future default?]
  generate HTML files with .html extension, and no <?xml?> declaration,
  but in a way that would be XML-compatible - i.e. following "polyglot" markup.

In both "xhtml" and "polyglot" modes we do:
(1) Don't uses named entities except the builtin XML ones.
(2) Close all tags.  Where HTML prohibits separate closing tags,
use the XML shorthand, e.g. <hr/> .  This works everywhere I've tried it.

--
        --Per Bothner
[email protected]   http://per.bothner.com/

Reply via email to