<?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/"
	xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
xmlns:rawvoice="http://www.rawvoice.com/rawvoiceRssModule/"
>

<channel>
	<title>ITauthor &#187; DocBook</title>
	<atom:link href="http://www.itauthor.com/category/docbook/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.itauthor.com</link>
	<description>Stuff about technical writing and software</description>
	<lastBuildDate>Sat, 07 Jan 2012 12:34:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<!-- podcast_generator="Blubrry PowerPress/2.0.4" -->
	<itunes:summary>Talking about technical writing, software and technology in general. The ITauthor Podcast is an advert-free, irregularly published show by technical writers for technical writers or anyone interested in software documentation or IT generally.</itunes:summary>
	<itunes:author>Alistair Christie - ITauthor.com</itunes:author>
	<itunes:explicit>no</itunes:explicit>
	<itunes:image href="http://www.itauthor.com/images/ITauthor-PhotoLogo-300px.jpg" />
	<itunes:owner>
		<itunes:name>Alistair Christie - ITauthor.com</itunes:name>
		<itunes:email>comments@itauthor.com</itunes:email>
	</itunes:owner>
	<managingEditor>comments@itauthor.com (Alistair Christie - ITauthor.com)</managingEditor>
	<copyright>2006-2009</copyright>
	<itunes:subtitle>Talking about technical writing, software and technology in general.</itunes:subtitle>
	<itunes:keywords>itauthor, alistair christie, technology, writing, documentation</itunes:keywords>
	<image>
		<title>ITauthor &#187; DocBook</title>
		<url>http://www.itauthor.com/images/ITauthor-PhotoLogo-144px.jpg</url>
		<link>http://www.itauthor.com/category/docbook/</link>
	</image>
	<itunes:category text="Technology">
		<itunes:category text="Software How-To" />
		<itunes:category text="Tech News" />
		<itunes:category text="Podcasting" />
	</itunes:category>
		<item>
		<title>Docbook XML to HTML</title>
		<link>http://www.itauthor.com/2006/09/17/docbook-xml-to-html/</link>
		<comments>http://www.itauthor.com/2006/09/17/docbook-xml-to-html/#comments</comments>
		<pubDate>Sun, 17 Sep 2006 17:35:15 +0000</pubDate>
		<dc:creator>alistair at home</dc:creator>
				<category><![CDATA[DocBook]]></category>

		<guid isPermaLink="false">http://www.itauthor.com/wordpress/?p=211</guid>
		<description><![CDATA[I've got some DocBook XML files I want to output as HTML files. The DocBook XSL files allow you to do this fairly easy and produce usable results. Note: the out-of-the box results aren't something you'd show to customers, but, as I say, they're usable. Download the XSL stylesheets from SourcForge: http://sourceforge.net/projects/docbook/ Install an XSLT [...]]]></description>
			<content:encoded><![CDATA[<p>I've got some DocBook XML files I want to output as HTML files. The DocBook XSL files allow you to do this fairly easy and produce usable results. Note: the out-of-the box results aren't something you'd show to customers, but, as I say, they're usable.</p>
<p>Download the XSL stylesheets from SourcForge:</p>
<p><a href="http://sourceforge.net/projects/docbook/">http://sourceforge.net/projects/docbook/ </a></p>
<p>Install an XSLT processor to do the transformation. I'm doing this on Windows XP and I chose to use xsltproc. I tried using Eclipse first of all (for a GUI way of doing things) but this failed with unhelpful errors, with no hits on Google, so I reverted to the old DOS command-line method using xsltproc. </p>
<p>To do this, first download and install xsltproc. See Chapter 3 of Bob Stayton's <em>DocBook XSL: The Complete Guide</em>, Third Edition:</p>
<p><a href="http://www.sagehill.net/docbookxsl/InstallingAProcessor.html">www.sagehill.net/docbookxsl/InstallingAProcessor.html</a></p>
<p>As the instructions tell you, you download 4 zip files (for <strong>libxml</strong>, <strong>libxslt</strong>, <strong>zlib</strong>, and <strong>iconv</strong>) from:</p>
<p><a href="http://www.zlatkovic.com/libxml.en.html">www.zlatkovic.com/libxml.en.html</a></p>
<p>Unzip these and put them in the Windows Path. </p>
<p>Note: It's not enough to put the 4 bin directories of the unzipped folders in the Windows Path. If you try doing this, when you run xsltproc you'll get a dialog box saying:</p>
<p>=========<br />
<strong>xsltproc.exe - Entry Point Not Found</strong><br />
--------------<br />
The procedure entry point xmlCtxtUseOptions could not be located in the dynamic link library libxml2.dll</p>
<p>=========</p>
<p>All the DLLs you unzipped need to be in the same directory as the xsltproc executable or (weirdly, if you've put the directories in you Windows Path) the exe file won't be able to find them. </p>
<p>The best thing to do is either to put all of the DLLs and exe files in Windows' system32 directory, or (better, because this way they're less likely to remain kicking around system32 long after you've stopped using them) put the unzipped directories in a directory somewhere within your own area (e.g. <strong>D:\myStuff\XML-stuff\XSLT-stuff\xsltproc</strong>) and then copy the DLLs and exes out of the bin directories into the top level of this directory and then add this path to your Windows "Path" environment variable.</p>
<p>For details of how to edit the Path environment variable in Windows, see:<br />
<a href="http://www.itauthor.com/notes/archives/2003/11/html_tidy.html">www.itauthor.com/notes/archives/2003/11/html_tidy.html</a></p>
<p>Once you've done this you can run xsltproc on an XML file.</p>
<p>Browse to the directory containing the XML file you want to process (here called inputfile.xml) and run the following command:</p>
<p><code><strong>xsltproc --output outputfile.html --stringparam use.extensions 0 D:/myStuff/XML-stuff/docbook-xsl/html/docbook.xsl inputfile.xml</strong></code></p>
<p>This creates an HTML version of the XML file called outputfile.html, in the same directory as the XML file, using the DocBook XSL files.</p>
<p>If you look at the source of the HTML it's compacted together and not pretty to look at. To fix this you can use the "tidy" program.</p>
<p>For example, run the following from a DOS console:</p>
<p><code><strong>tidy -i -f errorLog.txt "original file.html" &gt; newfile.html</strong></code></p>
<p>This creates newfile.html, with indentation (the -i), from "original file.html" (which is left untouched), and writes error messages to errorLog.txt.</p>
<p>Get "tidy" from:<br />
<a href="http://dev.int64.org/tidy.html">http://dev.int64.org/tidy.html</a></p>
<p>And documentation from:<br />
<a href="http://www.w3.org/People/Raggett/tidy/">www.w3.org/People/Raggett/tidy/</a>
</p>
<p><span id="more-211"></span></p>
<h3>Chunking</h3>
<p>So far, we've just transformed a single page. A more useful operation is to divide a large file, like a chapter, into smaller chunks. You do this by using the html\chunk.xsl XSL file, rather than html\docbook.xsl.</p>
<p>You can also pass various parameters to the processor, to affect the way the HTML is output. For example:</p>
<p><code>--stringparam base.dir chunkedOutput/ <br />
--stringparam html.stylesheet  styles/myStyles.css <br />
--stringparam admon.graphics 1 <br />
--stringparam  navig.graphics 1</code></p>
<p>These parameters tell the processor:</p>
<p><strong>--stringparam base.dir chunkedOutput/</strong></p>
<p>Put the output files into a subdirectory called "chunkedOutput". <br />
Note 1: You need the backslash, otherwise "chunkedOutput" gets added to the output file names and they're saved in the same directory as the input files. <br />
Note 2: This directory must exist, it isn't created for you.</p>
<p><strong>--stringparam html.stylesheet  styles/myStyles.css</strong><br />
Add a stylesheet link in the head of each HTML file that is output. Note: This will only have an effect if the chunkedOutput/styles/myStyles.css file actually exists.</p>
<p><strong>--stringparam admon.graphics 1</strong><br />
Add graphics for Note, Important, etc.<br />
To make these have an effect, copy the images directory, from the Docbook XSL stylesheet directory you downloaded, into the chunkedOutput/ directory.</p>
<p><strong>--stringparam  navig.graphics 1</strong><br />
This adds the Next, Previous and Home icons to the headers and footers of pages. Again, this only has an effect once you copy the images directory into place within the chunkedOutput/ directory.</p>
<p>The available parameters are listed here:</p>
<p><a href="http://docbook.sourceforge.net/release/xsl/current/doc/html/">http://docbook.sourceforge.net/release/xsl/current/doc/html/</a></p>
<p>Now you can generate a chunked file. But to be really useful, you want to process the whole book at once. To do this you need to create a book XML file that includes references to the chapter files. Once you have created this, you can run xsltproc against this file. The book.xml file should look something like this:</p>
<pre>
&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;!DOCTYPE book SYSTEM "file:///D:/myWork/documentation/manuals/authoringDocs/mxDocBook/mxDocBook-DTD/mxDocBook.dtd"&gt;

&lt;book&gt;
&lt;title&gt;Administrator's Guide&lt;/title&gt;
&lt;para&gt;This guide shows you how to use the software.&lt;/para&gt;

&lt;xi:include xmlns:xi="http://www.w3.org/2001/XInclude"  href="introduction.xml" /&gt; 

&lt;xi:include xmlns:xi="http://www.w3.org/2001/XInclude"  href="license.xml" /&gt; 

&lt;xi:include xmlns:xi="http://www.w3.org/2001/XInclude"  href="installingonWindows.xml" /&gt; 

&lt;xi:include xmlns:xi="http://www.w3.org/2001/XInclude"  href="appendixConfigFileDetail.xml" /&gt; 

&lt;/book&gt;
</pre>
<p>Save this file alongside the XML files you want to process and then, from this directory, run xsltproc. For example:</p>
<p><code>xsltproc --stringparam base.dir chunkedOutput/ --stringparam html.stylesheet  styles/myStyles.css --stringparam admon.graphics 1 --stringparam  navig.graphics 1   --xinclude  D:\myStuff\XML-stuff\docbook-xsl\html\chunk.xsl book.xml</code></p>
<p>This produces a mini Web site for your book, with navigation button to allow you to browse from page to page.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.itauthor.com/2006/09/17/docbook-xml-to-html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Intro to DocBook &#8211; online presentation</title>
		<link>http://www.itauthor.com/2005/04/27/intro-to-docbook-online-presentation/</link>
		<comments>http://www.itauthor.com/2005/04/27/intro-to-docbook-online-presentation/#comments</comments>
		<pubDate>Wed, 27 Apr 2005 13:22:33 +0000</pubDate>
		<dc:creator>alistair at work</dc:creator>
				<category><![CDATA[DocBook]]></category>

		<guid isPermaLink="false">http://www.itauthor.com/wordpress/?p=142</guid>
		<description><![CDATA[As part of my on-going, long-term quest to find a single-source way of producing top-quality online help and printed manuals, I came across the following slide show about DocBook by Dan York of Mitel Networks Corporation: www.lodestar2.com/people/dyork/talks/2002/ols/docbook-tutorial/frames/frames.html This dates back to 2002, but it's pretty thorough and provides a good overview of the subject. My [...]]]></description>
			<content:encoded><![CDATA[<p>As part of my on-going, long-term quest to find a single-source way of producing top-quality online help and printed manuals, I came across the following slide show about DocBook by Dan York of Mitel Networks Corporation:</p>
<p><a href="http://www.lodestar2.com/people/dyork/talks/2002/ols/docbook-tutorial/frames/frames.html">www.lodestar2.com/people/dyork/talks/2002/ols/docbook-tutorial/frames/frames.html</a></p>
<p>This dates back to 2002, but it's pretty thorough and provides a good overview of the subject.</p>
<p>My search for a single-source solution continues. </p>
<p>The trouble is that, at the moment, we produce excellent (award-winning) online help, using Microsoft HTML Help, Dreamweaver, CSS, Javascript and ActiveX - all tied together with RoboHelp. We also (as an entirely separate process) create printed documentation, for the same applications, using FrameMaker, saved as DocBook XML source files. </p>
<p>What I'd really like is to be able to create help systems that do everything our current ones do, but are stored as DocBook XML source files which we can then edit in a FrameMaker (or a FrameMaker-type application) an produce PDFs and hard-copy manuals. It's the single-source dream, but - while I'm prepared to compromise a little on the quality of our printed manuals, if necessary - I'm not prepared to compromise on the quality of our online help.</p>
<p>I'll keep looking.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.itauthor.com/2005/04/27/intro-to-docbook-online-presentation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

