[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Convert HTML Table into man pages



* Laurent Guignard <lguignard.debian@gmail.com>, 2009-08-05, 20:48:
>   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.

I believe you are wrong:

$ xsltproc | grep -- --html
	--html: the input document is(are) an HTML file(s)

--
Jakub Wilk


Reply to: