<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>edeca.net &#187; convert</title>
	<atom:link href="http://edeca.net/wp/tag/convert/feed/" rel="self" type="application/rss+xml" />
	<link>http://edeca.net/wp</link>
	<description>Musings of a geek</description>
	<lastBuildDate>Sat, 10 Jul 2010 11:10:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Docbook XML made easy</title>
		<link>http://edeca.net/wp/2009/11/docbook-xml-made-easy/</link>
		<comments>http://edeca.net/wp/2009/11/docbook-xml-made-easy/#comments</comments>
		<pubDate>Mon, 16 Nov 2009 19:36:03 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[convert]]></category>
		<category><![CDATA[docbook]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[pdf]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://edeca.net/wp/?p=246</guid>
		<description><![CDATA[In a slightly crazed moment today I decided to write some documentation. Having used Docbook before for my UML Bridging Tutorial, I thought I&#8217;d pay it another visit. As I was lazy and wanted a quick GUI way to do markup, I found an XML editor from XMLmind. It is written in Java so should [...]]]></description>
			<content:encoded><![CDATA[<p>In a slightly crazed moment today I decided to write some documentation.  Having used <a href="http://www.docbook.org/">Docbook</a> before for my <a href="http://edeca.net/articles/bridging/index.html">UML Bridging Tutorial</a>, I thought I&#8217;d pay it another visit.</p>
<p><span id="more-246"></span><br />
As I was lazy and wanted a quick GUI way to do markup, I found an XML editor from <a href="http://www.xmlmind.com/xmleditor/persoedition.html">XMLmind</a>.  It is written in Java so should run in most places and, except a few quirks, seems really good.  An hour later I had a few chapters written in Docbook markup ready to be published.</p>
<p>However, I couldn&#8217;t find many sites that gave a quick and easy example of how to convert from XML to PDF or HTML.  It seems that for Docbook XML you need a toolchain, which means understanding in a lot of detail what each stage does.  With Docbook SGML there were a number of nifty <tt>docbook2x</tt> programs which did the work and gave HTML, PDF or text output (amongst others).</p>
<p>To duplicate this quickly and easily with Docbook XML, I found that <tt>xmlto</tt> and <tt>dblatex</tt> were the solution.  To create an HTML document, it couldn&#8217;t be easier than:</p>
<pre># Make a one page per chapter HTML book
$ xmlto xhtml MyDocument.xml
# Make a one page HTML document
$ xmlto html-nochunks MyDocument.xml</pre>
<p>For PDF, it is as simple as:</p>
<pre># dblatex defaults to PDF
$ dblatex MyDocument.xml</pre>
<p>Both of these packages (as well as the Docbook stylesheets) have been available in Ubuntu since 8.04.  In order to make (X)HTML output prettier, you might like to look at <a href="http://ds9a.nl/docbook/minimal-page.html">this page</a> which gives a great tutorial.</p>
]]></content:encoded>
			<wfw:commentRss>http://edeca.net/wp/2009/11/docbook-xml-made-easy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
