On 3/15/07, Keith Fahlgren <
abdelazer@gmail.com> wrote:
> On 3/15/07, Bob Stayton <
bobs@sagehill.net> wrote:
> > Well, I tried your command and it did not work. When I replaced the -jar
> > $SAXON with the classname com.icl.saxon.StyleSheet, it worked. Anyone know
> > why that would happen?
There were some bugs in my shell script (confusing 6 and 8). Saxon6 now runs:
$ ./highlight-fo6.sh -o ch09.fo ch09.xml
/work/tools/keith/devprod/trunk/oneoffs/highlight6.xsl
Making portrait pages on USletter paper (8.5inx11in)
potentially highlighting? false
FOOO!
Loading configuration from
file:///work/tools/docbook/highlighting/xslthl-config.xml...
Loading java highligter from
file:/work/tools/docbook/highlighting/java-hl.xml... OK
Loading delphi highligter from
file:/work/tools/docbook/highlighting/delphi-hl.xml... OK
Loading ini highligter from
file:/work/tools/docbook/highlighting/ini-hl.xml... OK
Loading php highligter from
file:/work/tools/docbook/highlighting/php-hl.xml... OK
Loading myxml highligter from
file:/work/tools/docbook/highlighting/myxml-hl.xml... OK
Loading xml highligter from
file:/work/tools/docbook/highlighting/xml-hl.xml... error
Loading m2 highligter from file:/work/tools/docbook/highlighting/m2-hl.xml... OK
Loading c highligter from file:/work/tools/docbook/highlighting/c-hl.xml... OK
potentially highlighting? false
$ less highlight-fo6.sh
#!/bin/sh
OLD_CP=$CLASSPATH
export CLASSPATH=""
INVOKE="com.icl.saxon.StyleSheet"
SAXON="/usr/share/saxon/lib/old/6.5/saxon.jar"
SAXON_STUFF="/usr/share/saxon/lib/old/6.5/saxon-jdom.jar:/usr/share/saxon/lib/old/6.5/saxon-xml-apis.jar"
XSLTHL_JAR="/work/tools/docbook/highlighting/xslthl.jar"
CP6="$XSLTHL_JAR:$SAXON:$SAXON_STUFF"
XSLTHL_CONFIG="file:///work/tools/docbook/highlighting/xslthl-config.xml"
/usr/bin/java -classpath $CP6 -Dxslthl.config=$XSLTHL_CONFIG -Xmx1024m
$INVOKE $*
#/usr/bin/java -classpath $CP6 -Dxslthl.config=$XSLTHL_CONFIG
-Xmx1024m -jar $SAXON -TJ $*
export CLASSPATH=$OLD_CP
I'll write a postmortem once I ensure I'm getting correct output...
Thanks,
Keith