#!/bin/sh # # lt-convert - converts an XML/DocBook document of LinuxTag flavour to HTML. # # LinuxTag Paper Development Kit is Copyright (C) 2003 by LinuxTag e. V. # # V1.1 written 2003-05-04 by Nils Magnus (magnus@linuxtag.org) # # check options if [ -z "$1" ] then cat << EOF Usage: $0 file Converts XML/DocBook file to HTML fragment. EOF exit 1 fi # determine paths bin=`echo $0 | sed 's/[^/]*$//'` if echo ${bin} | grep -v '^/' > /dev/null then bin="`pwd`/${bin}" fi xml=`echo ${bin} | sed 's/bin.*$/xml/'` # call xsltproc if ${bin}/xsltproc ${xml}/docbook-html.xsl $* then : else echo "Summary: Document is not conforming to spec." fi