A Different Approach
Why not go GUI? The XMLmind FO Converter (XFC) is a graphical front end to several XSLT processors that work behind the scenes to convert DocBook XML documents to other formats. While XFC was originally developed to convert DocBook to Rich Text Format (RTF), which can be read by most word processors, XFC can also be used to convert files to just about any format, as long as you have the proper stylesheets. XFC can convert DocBook XML files to the following formats:
PDF
PostScript
HTML or XHTML
Various HTML-based online help formats
XFC is highly configurable. You can choose the type of conversion to perform and the XSLT and/or XSL-FO processor to use, and you can specify the DocBook parameters for a particular output format.