#!/bin/bash CSS= TARGET= STYLE=@XSLDIR@/local.xsl OPTIONS="--stringparam chunker.output.indent yes" if [ -z "$*" ]; then echo "Usage: `basename $0` hoge.xml" exit 1 fi while [ ! -z "$*" ]; do case $1 in --clean) rm *.html ;; --css) shift CSS=$1 ;; *) TARGET=$1 ;; esac shift done if [ -z $TARGET ]; then echo "No target" exit 1 fi if [ -n $CSS ]; then OPTIONS="${OPTIONS} --stringparam html.stylesheet ${CSS}" fi xsltproc ${OPTIONS} ${STYLE} ${TARGET} # vi:syntax=sh