On Wed, Aug 5, 2009 at 10:02 PM, Daniel Leidert<[email protected]> wrote: > Am Mittwoch, den 05.08.2009, 20:48 +0200 schrieb Laurent Guignard: >> On Fri, 31 Jul 2009 18:41:28 +0200, Daniel Leidert wrote: >> > Mathieu Malaterre wrote: >> > >> > > I need to generate a man page for KWStyle the only available >> > > documentation is in HTML: >> > > >> > > http://public.kitware.com/KWStyle/documentation.htm >> > > >> > > Is there a way to turn this HTML table into something 'nice' as a man >> > > page ? >> > >> > Of course. xsltproc can process XML as well as HTML. Write an >> > XSLT stylesheet, which processes the HTML page and outputs >> > a text document (your manual page). >> > >> > Should be pretty easy to do, if you have some XSLT knowledge. >> > >> >> This is true only if HTML is well-formed XHTML. > > That's wrong. See xsltproc(1) -> --html.
Just for reference I found out that tidy is generating the man page automatically from the tidy --xml-help and that tidy can be used to clean up any messy html file just before feeding it to the html2docbook xslt script: http://wiki.docbook.org/topic/Html2DocBook -- Mathieu http://mathieumalaterre.com -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

