<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
<article>
<articleinfo>
<title>Docbook Quick Get Started for Windows</title>
<subtitle>One page to docbook bliss</subtitle>
<author>
<othername>mawi</othername>
<email>docbook@mawi.org</email>
</author>
<copyright>
<year>2003</year>
</copyright>
<abstract>
<para>Short stepwise guide to installing docbook with some custom
      scripts to quickly allow you to generate content in HTML, HTML Help and
      PDF by a click.</para>
</abstract>
<revhistory>
<revision>
<revnumber>1</revnumber>
<date>June 2003</date>
<revdescription><para>Initial draft</para></revdescription>
</revision>
<revision>
<revnumber>2</revnumber>
<date>Oct 2 2003</date>
<revdescription><para>Fixed several small problems in scripts, edited text</para></revdescription>
</revision>
</revhistory>
<releaseinfo>The latest version of this document is kept in several
    formats here: <ulink url="http://mawi.org/articles/DocBook_On_Windows_Bliss.html">HTML</ulink>,
    <ulink url="http://mawi.org/articles/DocBook_On_Windows_Bliss.pdf">PDF</ulink>,
    <ulink url="http://mawi.org/articles/DocBook_On_Windows_Bliss.chm">HTML
    Help</ulink>, <ulink url="http://mawi.org/articles/DocBook_On_Windows_Bliss.xml"> original
    docbook XML source</ulink>.</releaseinfo>
</articleinfo>
<section>
<title>The steps</title>
<para>You need to do this:</para>
<itemizedlist>
<listitem>
<para>Optional: Get docbook here: <ulink url="http://www.oasis-open.org/docbook/xml/"/>, extract
        somewhere.</para>
</listitem>
<listitem>
<para>Get Docbook XSL (the code doing the converting) (homepage:
        <ulink url="http://docbook.sourceforge.net/"/>), I found it
        under &#34;Projects&#34;, &#34;XSL...&#34; <ulink url="http://docbook.sourceforge.net/projects/xsl/index.html"/>
        linked to download page here: <ulink url="http://sourceforge.net/project/showfiles.php?group_id=21935"/>. <emphasis>Remember</emphasis> where you extract it
        since you will need that information below.
</para>
</listitem>
<listitem>
<para>Get java here <ulink url="http://java.sun.com/j2se/"/>
        (click downloads) if you dont have it</para>
</listitem>
<listitem>
<para>Get instant <ulink url="http://saxon.sourceforge.net/">saxon</ulink>
        (that&#39;s what I did, easy one .exe - scroll down). It contains one
        exe, put it in your C:\WINDOWS (95/98/XP) or C:\WINNT catalogue.</para>
</listitem>
<listitem>
<para>To make PDFs, get FOP from <ulink url="http://xml.apache.org/"/>
        and extract someplace (<emphasis>remember</emphasis> where!) (I found it here: <ulink url="http://xml.apache.org/fop/download.html"/> - choose binary
        of course).</para>
</listitem>
<listitem>
<para>You also need to get jimi for the pdfs, check out the FOP <ulink url="http://xml.apache.org/fop/relnotes.html">releasenotes</ulink> for
        info, I found jimi here: <ulink url="http://java.sun.com/products/jimi/"/>, like the FOP
        releasenotes say &#34;then extract the archive, then copy
        JimiProClasses.zip to FOP&#39;s lib dir and rename it to
        jimi-1.0.jar.&#34;</para>
</listitem>
<listitem>
<para>To make HTML Help you need the HTML Help workshop (as of this
        writing homepage here: <ulink url="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/htmlhelp/html/vsconhh1start.asp"/>),
        I found it here: <ulink url="http://go.microsoft.com/fwlink/?LinkId=14188"/>. Install
        it, go to its directory (normally C:\Program Files\HTML Help Workshop)
        and copy the program file &#34;hhc.exe&#34; to your windows catalogue
        (C:\WINDOWS or C:\WINNT on WinNT/2000)</para>
</listitem>
<listitem>
<para>Finally, get my scripts (here <ulink url="http://mawi.org/articles/docbook-scripts.zip"/>), extract
        somewhere, and make a few small edits: In &#34;docmake.bat&#34;, edit the
        following lines to where you extracted the scripts and where you extracted fop:
        <programlisting>
SET scriptpath=C:\priv\stuff\docbook\scripts
SET defstylepath=%scriptpath%
SET fop=C:\priv\stuff\docbook\fop-0.20.5\fop.bat
</programlisting>and in style-hh.xsl, style-html.xsl, style-pdf.xsl - edit the
        italic part of the following line to where you extracted the docbooks XSL: 
<programlisting>&#60;xsl:import href=&#34;file:///<emphasis>C:/Program Files/Altova/xmlspy/Stylesheets/docbook-xsl-1.61.3</emphasis>/htmlhelp/htmlhelp.xsl&#34;/&#62; 
</programlisting>. Finally, copy &#34;docmake.bat&#34; to your windows
        catalogue (C:\WINDOWS or C:\WINNT) and run the registry to make
        &#34;Docmake XML make&#34; menuitem appear on all XML files context
        menu in windows file explorer.</para>
</listitem>
</itemizedlist>
<para>After all this is done, try it out on a file! It takes a while - so wait for it. 
It will create a "file-pub" directory with all generated files. <emphasis>Note!</emphasis>
    My scripts only work on files with no spaces! So please replace spaces
    with underscores.</para>
<para>This was done really quick! Feedback any problems please; thx!</para>
</section>
<bibliography>
<biblioentry>
<title>DocBook XSL: The Complete Guide</title>
<author>
<firstname>bob</firstname>
<surname>Stayton</surname>
</author>
<publisher>
<publishername>Sagehill Enterprises</publishername>
</publisher>
<copyright>
<year>2002,2003</year>
</copyright>
<releaseinfo>URL: <ulink url="http://www.sagehill.net/docbookxsl/"/>
</releaseinfo>
</biblioentry>
<biblioentry>
<title>Docbook Frequently Asked Questions</title>
<author>
<firstname>Dave</firstname>
<surname>Pawson</surname>
</author>
<copyright>
<year>2001</year>
</copyright>
<releaseinfo>URL: <ulink url="http://www.dpawson.co.uk/docbook/"/>
</releaseinfo>
</biblioentry>
<biblioentry>
<title>DocBook XSL Stylesheet Documentation</title>
<author>
<firstname>Norman</firstname>
<surname>Walsh</surname>
</author>
<author>
<firstname>Bob</firstname>
<surname>Stayton</surname>
</author>
<author>
<firstname>Jiri</firstname>
<surname>Kosek</surname>
</author>
<copyright>
<year>1999, 2000, 2001, 2002</year>
</copyright>
<releaseinfo>URL: <ulink url="http://docbook.sourceforge.net/release/xsl/current/doc/"/>
</releaseinfo>
</biblioentry>

<biblioentry>
<title>MVPS HTML Help FAQ</title>
<author>
<firstname>Dave</firstname>
<surname>Liske</surname>
</author>
<copyright>
<year>2001</year>
</copyright>
<releaseinfo>FAQ on mvps site, not the MS HH FAQ - URL: <ulink url="http://www.mvps.org/htmlhelpcenter/htmlhelp/hhfaq.html"/>
</releaseinfo>
</biblioentry>


</bibliography>

</article>
