[opensuse] Convert DocBook XML to HTML
I have been asked to write an article using DocBook XML format. I am using quanta for XML file editing, but I need a way to convert the XML file to HTML in order to preview the article. Could you recommend a tool for that ? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Saturday 21 Nov 2009, Bogdan Cristea wrote:
I have been asked to write an article using DocBook XML format. I am using quanta for XML file editing, but I need a way to convert the XML file to HTML in order to preview the article. Could you recommend a tool for that ?
The key thing in Docbook is to setup your top level and chapter files in a template and source them all through one file. I have followed this methodology. I would suggest that you join the Docbook mailing lists (I do). I have not done much with Docbook thus the memory is rusty. First of all you can use xmllint to verify that your XML tags are matched. Any orphaned XML tags will be flagged. Proceed further only when you get 0 errors from xmllint. xsltproc is the tool to process from XML manuscript to HTML. Sorry I could not be of more help here :( -- Arun Khan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Quoting Bogdan Cristea <cristeab@gmail.com>:
I have been asked to write an article using DocBook XML format. I am using quanta for XML file editing, but I need a way to convert the XML file to HTML in order to preview the article. Could you recommend a tool for that ?
The DocBook Project http://docbook.sourceforge.net/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sat, 21 Nov 2009, Jeffrey L. Taylor wrote:
Quoting Bogdan Cristea <cristeab@gmail.com>:
I have been asked to write an article using DocBook XML format. I am using quanta for XML file editing, but I need a way to convert the XML file to HTML in order to preview the article. Could you recommend a tool for that ?
The DocBook Project http://docbook.sourceforge.net/
under fedora, there's a package and command "xmlto" which is *very* straightforward, i can't imagine something similar doesn't exist under opensuse. and the libxml2 package should have the "xsltproc" command - you can do pretty much what you want with that. converting XML to HTML is about as easy a transformation as you can ask for. rday -- ======================================================================== Robert P. J. Day Waterloo, Ontario, CANADA Linux Consulting, Training and Kernel Pedantry. Web page: http://crashcourse.ca Twitter: http://twitter.com/rpjday ======================================================================== -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 11/21/2009 11:09 AM, Robert P. J. Day pecked at the keyboard and wrote:
On Sat, 21 Nov 2009, Jeffrey L. Taylor wrote:
Quoting Bogdan Cristea <cristeab@gmail.com>:
I have been asked to write an article using DocBook XML format. I am using quanta for XML file editing, but I need a way to convert the XML file to HTML in order to preview the article. Could you recommend a tool for that ?
The DocBook Project http://docbook.sourceforge.net/
under fedora, there's a package and command "xmlto" which is *very* straightforward, i can't imagine something similar doesn't exist under opensuse. and the libxml2 package should have the "xsltproc" command - you can do pretty much what you want with that.
converting XML to HTML is about as easy a transformation as you can ask for.
It does, zypper in xmlto will install the package. -- Ken Schneider SuSe since Version 5.2, June 1998 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sat, 21 Nov 2009, Ken Schneider - openSUSE wrote:
On 11/21/2009 11:09 AM, Robert P. J. Day pecked at the keyboard and wrote:
On Sat, 21 Nov 2009, Jeffrey L. Taylor wrote:
Quoting Bogdan Cristea <cristeab@gmail.com>:
I have been asked to write an article using DocBook XML format. I am using quanta for XML file editing, but I need a way to convert the XML file to HTML in order to preview the article. Could you recommend a tool for that ?
The DocBook Project http://docbook.sourceforge.net/
under fedora, there's a package and command "xmlto" which is *very* straightforward, i can't imagine something similar doesn't exist under opensuse. and the libxml2 package should have the "xsltproc" command - you can do pretty much what you want with that.
converting XML to HTML is about as easy a transformation as you can ask for.
It does, zypper in xmlto will install the package.
then you're pretty much in business. and xsltproc is in the libxslt package, not libxml2. or something like that. rday -- ======================================================================== Robert P. J. Day Waterloo, Ontario, CANADA Linux Consulting, Training and Kernel Pedantry. Web page: http://crashcourse.ca Twitter: http://twitter.com/rpjday ======================================================================== -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Hi, On Saturday 21 November 2009 Bogdan Cristea wrote:
I have been asked to write an article using DocBook XML format. I am using quanta for XML file editing, but I need a way to convert the XML file to HTML in order to preview the article. Could you recommend a tool for that ?
I would recommend to install at least the following packages: * libxslt (depends on libxml2) * docbook-xsl-stylesheets The package libxslt contains xsltproc, an XSLT processor. It is used to transform your XML into something else. To transform your DocBook XML file, use xsltproc like this ($ indicates the shell prompt): $ DB=/usr/share/xml/docbook/stylesheet/nwalsh/current/ $ xsltproc --output article.html $DB/html/docbook.xsl article.xml Find more information in the DocBook Wiki: http://wiki.docbook.org/topic/FrontPage Tom -- Thomas Schraitle ---------------------------------------------------------------------- SUSE LINUX GmbH >o) Documentation Specialist Maxfeldstrasse 5 /\\ 90409 Nuernberg _\_v http://en.opensuse.org/Documentation_Team http://developer.novell.com/wiki/index.php/Lessons_for_Lizards http://lizards.opensuse.org/author/thomas-schraitle/ --------------------------------------------------------------------- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (6)
-
Arun Khan
-
Bogdan Cristea
-
Jeffrey L. Taylor
-
Ken Schneider - openSUSE
-
Robert P. J. Day
-
Thomas Schraitle