You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
552 B
27 lines
552 B
14 years ago
|
#!/bin/sh
|
||
|
|
||
|
DB_EXT=/usr/share/xml/docbook/xsl-stylesheets-1.73.2/extensions/xalan27.jar
|
||
|
LIBS=/usr/lib/apache-xml:/usr/lib/apache-xml/*:$DB_EXT
|
||
|
PROGRAM_CLASS=org.apache.xalan.xslt.Process
|
||
|
RESOLVER_CLASS=org.apache.xml.resolver.tools.CatalogResolver
|
||
|
OPTS="-ENTITYRESOLVER $RESOLVER_CLASS -URIRESOLVER $RESOLVER_CLASS"
|
||
|
|
||
|
if [ ! "$1" ]; then
|
||
|
java -cp $LIBS $PROGRAM_CLASS
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
case "$1" in
|
||
|
-n|--nocatalog)
|
||
|
OPTS=""
|
||
|
shift
|
||
|
;;
|
||
|
|
||
|
-h|--help)
|
||
|
java -cp $LIBS $PROGRAM_CLASS
|
||
|
exit 0
|
||
|
;;
|
||
|
esac
|
||
|
|
||
|
java -cp $LIBS $PROGRAM_CLASS $OPTS $@
|