| Name | Last modified | Size | Description | |
|---|---|---|---|---|
| Parent Directory | - | |||
| data/ | 29-Sep-2008 16:04 | - | ||
| docs/ | 29-Sep-2008 16:04 | - | ||
| html4strict.py | 29-Sep-2008 16:04 | 4.0K | ||
| tools/ | 29-Sep-2008 16:04 | - | ||
The HTML Writer module, docutils.writers.html4css1 generates XHTML compatible with the XHTML 1.0 specification.
However, generated documents do not conform to the "strict" variant, as they contain some deprecated structures in order to ensure correct display with deficient browsers.
A HTML writer, producing XHTML that strictly conforms to the XHTML 1.0 specification.
The html4strict writer module subclasses the html4css1.HTMLTranslator and modifies it to remove deprecated HTML constructs. The output conforms to the XHTML version 1.0 Strict DTD.
A html4css2.css stylesheet provides the standard layout for CSS2-conforming Html browsers (e.g. Firefox or Opera). Alternative style sheets are in the data subdir.
Place rst2html_strict.py in the binary PATH and html4strict.py in the PYTHONPATH or in the working directory (from where you start rst2html_strict.py).
Similar to the standard rst2html front end:
rst2html_strict.py [options] [<source> [<destination>]]
The full usage text can be obtained with the --help option.
Some of the described options are special to html4css1 and have no effect in the html4strict version of the HTML writer.