(* $Id: main.ml 662 2004-05-25 20:57:28Z gerd $ * ---------------------------------------------------------------------- * *) (* Convert XHTML-1.0 document into HTML-4.01 document. The input is parsed * in well-formedness mode, and is not validated. The input should have one * of these DOCTYPEs: * - PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" * - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" * - PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" * * The input must declare the HTML namespace as http://www.w3.org/1999/xhtml. * * The XHTML entity sets (Latin 1, Special, Symbol) can be assumed. * In output, always numeric entities are printed. * * Processing instructions and comments are removed from the document. * * Output encoding is 7 bit ASCII. * * TODO: * - id/name: These attributes are not yet checked, but simply printed as * found in the input * - XML stylesheets are not yet transformed to HTML stylesheets * (conversion of to