# psvixsv: a shell wrapped around xsv # Revisions: # 2004-01-26 : CMSMcQ : clean up a bit before putting on the server # 2003-10-11 : CMSMcQ : adjust for Linux # 2003-08 : CMSMcQ : make this program for use in demos and tutorials # we need to set PYTHONPATH for XSV's sake export PYTHONPATH=/usr/local/src # if you want to use a browser other than Galeon, change things here. BROWSER=/usr/bin/galeon BROWOPT1=--new-window BROWOPT2=--new-tab # where are we and what file are we looking to process? DIR=`pwd` HERE=file://$DIR # Set up the command line parameters COMMAND="/usr/local/src/XSV/commandLine.py" # OUTPUTFILE is the main XSV output file in XML OUTPUTFILE=$1.xsvout.xml OUTPUT="-o $OUTPUTFILE -s file:///SGML/Styles/xsv.xsl" # XMLOUT is the PSVI dump file, XSL is the stylesheet used to transform it XMLOUT=$DIR/$1.psvi.out.xsv.xml XSL=/SGML/Public/CMSMcQ/psvihtml.xsl HTMLOUT=$DIR/$1.psvi.out.xsv.html # Run XSV echo "Validating " $* "..." python $COMMAND -t -w -r alt $OUTPUT $* > $XMLOUT # Now transform the PSVI dump into HTML and open in the browser of your choice. xsltproc $XSL file://$XMLOUT > $HTMLOUT echo Opening results in browser ... $BROWSER file://$DIR/$OUTPUTFILE file://$XMLOUT file://$HTMLOUT &