The refdbxml shell script

This is the XSL equivalent of the refdbjade script. Use it to transform your DocBook XML or TEI XML documents to HTML, PDF, or RTF output.

Starting refdbxml

refdbxml [-d stylesheet] [-h] [-p processor] [-t format] {file...}

The command-line switches are:

-d stylesheet

Select the appropriate stylesheet driver file with this switch. The driver file that you want to use is one of the driver files which were generated by runbib. Use the HTML driver file for HTML output and the FO driver file for all other output. You can also use this script for non-RefDB documents. Use the values ""db"" and "tei" to select the plain DocBook and TEI XSL stylesheets, respectively.

-h

Prints a command synopsis on the screen and exits

-p processor

This determines the XSL processor that is to be used. refdbxsl currently knows to handle Xalan, XT, Saxon, and xsltproc. You can set your favourite processor as the default in the script so you don't have to use this option except when you need a little diversity. Of course you can only select a processor that is actually installed on your system.

-t format

Select an output format with this option. Possible values are html, rtf, and pdf, to generate HTML, RTF, and PDF output, respectively. The printable output formats depend on JFOR and PassiveTeX, respectively.

Note: Unless you manually tweak files, the DTD and stylesheet files reference documents found on the internet. The XSL processors will therefore complain if you do not have an active internet connection.

Examples

Again we'll transform our document (which now is either a DocBook or TEI XML document) to a nice-looking PDF file with the following command:

~$ refdbxml -d J.Biol.Chem.fo.xsl -t pdf mypaper.xml

Note that we used the FO stylesheet for this purpose. If we want HTML output, we need to change the output type switch and use the corresponding HTML stylesheet:

~$ refdbxml -d J.Biol.Chem.html.xsl -t html mypaper.xml