# TODO list for sgml2x

- ## Bugfixes

  - (Completely fixed in 0.99.9 ?) Entities/images referenced by relative-path in a doc will cause problems for HTML formatting in subdir.

  - An uninstalled extension (eg. alcovebook) does not find jadetex.cfg. Should use realpath.

  - Check that nothing pollutes stdout.

  - Replace FOT output format with a --fot flag.

  - Review the codepath for STYLE=local* to ensure it always works as expected.

  - `docbook/misc/doctype.dsl` causes oj 1.4devel to complain about the top-level flow-object. Who's right ?

- ## Generalization, ease of use and integration

  - Switch to using a litprog tool for main script, to help a possible rewrite in a real language.

  - Move sgml2x-aliases into new layout.

  - Provide a dtd-installer program, that would create symlinks to script and manpage as needed, for DTD packages to call in maintainer scripts.

  - Find a clean generic way to treat -V%show-comments% (eg. "CommentsFlag: %show-comments%" ?)

  - Catch missing info in style alias files

  - Group styles by priority and/or vendor in --help (add "vendor" field ?)

- ## New features

  - Include index generation

  - Provide an option for setting output file/dir name, with support for stdout.

  - Support for multi-docclass conversion

  - Code pretty-printing, using preprocessor / transformer for programlisting autotagging

  - Specification of transformations to be chained

  - Could translate included EPS to PDF when needed

  - Backend modularisation ?

  - Handle jade stylesheet PIs (requires multi-docclass conversion)

  - Support for unchunked HTML output

  - Declaration of subset docclasses to allow the use with any docclass of the style-sheets that apply to its superset docclasses.