#!/bin/sh
# File: /home/john/sgml/docbook/xml/sample/process.sh
# Date: Tue Jun  1 14:23:53 EDT 2004
# Last Revised: Time-stamp: <2004-06-08 20:43:44 john> maintained by emacs
# Description: Simple processing for book-sample.xml file
# ======================================================================= 

SOURCE=docs.xml
OUTPUT=docs.html
HTMLSTYLE=/usr/share/xml/docbook/xsl-stylesheets-1.61.2/html/docbook.xsl
CSSSTYLE="--stringparam html.stylesheet style-ob.css"

# Create a file with a time stamp in it
date "+%Y-%m-%d %H:%M" >timestamp.txt

# First create html from xml
xsltproc -o $OUTPUT $CSSSTYLE $HTMLSTYLE $SOURCE

# Now reformat it for better read ability
mv $OUTPUT boo.html
tidy -i -c -asxhtml -f tidy.err -o $OUTPUT boo.html
rm boo.html

