This HOWTO is currently written with LyX version 1.4.2 on a Fedora Core 5 system with template SGML (DocBook book). It's available on TLDP-CVS / users / Peter-Bieringer for contribution.
Code line wrapping is done using selfmade utility "lyxcodelinewrapper.pl", you can get it from CVS for your own usage: TLDP-CVS / users / Peter-Bieringer
SGML is generated using export function in LyX.
Also some fixes are have to be made to create proper SGML code (see also here for the Perl programs TLDP-CVS / users / Peter-Bieringer):
Export of LyX table does not create proper "colspan" tags - tool for fixing: "sgmllyxtabletagfix.pl" (fixed since LyX 1.2.0)
LyX sometimes uses special left/right entities for quotes instead the normal one, which will still exist in generated HTML. Some browsers don't parse this very well (known: Opera 6 TP 2 or Konqueror) - tool for fixing: "sgmllyxquotefix.pl"
Because the HTML pages are generated out of the SGML file, the HTML filenames turn out to be quite random. However, some pages are tagged in LyX, resulting in static names. These tags are useful for references and shouldn't be changed in the future.
If you think that I have forgotten a tag, please let me know, and I will add it.