DocBook Video Tutorial 2 – DocBook to PDF with Xcode and XMLLINT

In this tutorial you will learn:

  1. Downloading DocBook Documentation
  2. Writing DocBook in Xcode
  3. Validating DocBook XMLs
  4. Generating PDF from DocBook XMLs

To download MacPorts, go to: http://macports.org/

To install XMLLINT categories, use this Terminal command:

sudo port install docbook-xml xmlcatmgr

To validate a DocBook XML, place these commands (as demonstrated in the video) into an executable file and run by passing the name of the file to validate as an argument:

fileToValidate=”$1″

export SGML_CATALOG_FILES=/opt/local/etc/xml/catalog

xmllint –valid –noout –catalogs $fileToValidate

Questions? let me know and watch for the next videos about DocBook

DocBook Video Tutorial 1 – Setting up Xcode 4 and SVN

In this video, I will show you how you can set up your environment for writing books using DocBook on Mac OS X. This is the first video in the series of 4 videos that I’m preparing, showing authors how they can use DocBook to write books. This video specifically targets O’Reilly authors.

In this video you will learn how to use Xcode 4 to set up your SVN repositories and check out files from your book’s SVN and commit your files into repositories. Enjoy.