#!/bin/csh -f # xmltrans # ----------------------------------------------------------------------------- # Shell script to apply an XSL transformation to an XML stream. # ----------------------------------------------------------------------------- # Usage: See Usage section below or run with no arguments to see usage. # Assumptions: # Effects: # - Reads from an XML file or stdin and writes to another XML file # or stdout. # Notes: # Implementation Notes: # Portability Issues: # Revision History: # $Log$ # ----------------------------------------------------------------------------- if ($#argv == 0 || "$1" == "-h" || "$1" == "--help") then # We need this Usage section (which duplicates the one on the Java file) # only because that one echos a usage line like: # Usage: java -classpath xmltrans.jar;bristle.jar # com.bristle.javaapps.xmltrans.XmlTrans [options] [infile [outfile]] # instead of the simpler usage line here. echo "Usage: $0:t [options] [infile [outfile]]" echo "Where options can be any of the following:" echo " -xsl transform.xml" echo " Applies the specified XSL transformation." exit 1 endif java -classpath /Users/fred/fred/lib/xmltrans.jar:/Users/fred/fred/lib/bristle.jar:/Users/fred/fred/lib/xercesImpl.jar:/Users/fred/fred/lib/xml-apis.jar com.bristle.javaapps.xmltrans.XmlTrans $*:q