Re: convert gnome doc to html



Slobodan,

On Fri, 2004-05-28 at 05:33, Slobo wrote:
> Maybe this will be useful:
> xsltproc --noout -o output /usr/share/sgml/docbook/yelp/db2html.xsl
> name_of_your_xml_file
> 
> (This will use stylesheets introduced with gnome 2.6.0 release (or
> 2.5.x))
> 
> You can also use Yelp in order to view document:
> yelp ghelp://full_path_to_your_xml_file
> this can look like this:
> yelp ghelp:///home/user/test.xml
> 
> xsltproc will complain about wrong tagging and should point to line
> number where it suspects error exists. Don't know about utf-8 problem
> (is that an issue now?) but for all other those links are very useful:
> 
> http://developer.gnome.org/projects/gdp/handbook/gdp-handbook/
> http://www.docbook.org/

I solved my problem by using xmlto utility. It is a script which uses
custom XSL sheets depending on which format you export it to, so it
works fine with HTML.

As for the charset, it turns out that (except for FC distros) the
resulting HTML charset is determined by the current locale. So I was
able to switch mine to UTF-8 and get the correct HTML.

For FC distros, one needs to correct a line in /usr/bin/xmlto when the
if statement decides whether to determine charset based on locale.

Thanks for your help,
Alex

-- 
Alexander Roitman   http://ebner.neuroscience.umn.edu/people/alex.html
Dept. of Neuroscience, Lions Research Building
2001 6th Street SE, Minneapolis, MN  55455
Tel (612) 625-7566   FAX (612) 626-9201

Attachment: signature.asc
Description: This is a digitally signed message part



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