[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Saxon and linenumbering
2007/5/1, Mauritz Jeanson <mj@johanneberg.com>: > > > Don't use the -jar option. Either set the CLASSPATH environment variable (to > contain both saxon.jar and saxon65.jar), or use the -classpath option. In > both cases, supply the full name of the main class, as in your first command > line example above. > > See also http://saxon.sourceforge.net/saxon6.5.5/index.html#Installation > Thanks, it works now with this script (copied from another post).One thing I had hard time to find is the presence of xslthl.jar in SAXON_STUFF. It has nothing to do with linenumbering but I did not think it could interfere if it was not used. I have left this one from my highlighting tests (unsuccessful for the moment). #!/bin/sh OLD_CP=$CLASSPATH export CLASSPATH="" HOME_DIR="/home/thierrybo" MON_DOCBOOK_DIR="${HOME_DIR}/Mes.documents/Informatique/Docbook/Tests" SAXON="${HOME_DIR}/local/lib/xxe-std-3_5_2/bin/saxon.jar" INVOKE="com.icl.saxon.StyleSheet" #INVOKE="-jar ${SAXON}" SAXON_STUFF="${HOME_DIR}/local/lib/xxe-std-3_5_2/bin/saxon-jdom.jar:${HOME_DIR}/local/lib/xxe-std-3_5_2/bin/saxon-xml-apis.jar:${HOME_DIR}/local/lib/docbook-xsl-1.72.0/extensions/saxon65.jar" XSLTHL_JAR="${HOME_DIR}/local/lib/docbook-xsl-1.72.0/highlighting/xslthl.jar" # If XSLTHL.JAR is in CP6, raise "java.lang.UnsupportedClassVersionError". #CP6="$XSLTHL_JAR:$SAXON:$SAXON_STUFF" CP6="$SAXON:$SAXON_STUFF" XSLTHL_CONFIG="file://${HOME_DIR}/local/lib/docbook-xsl-1.72.0/highlighting/xslthl-config.xml" STYLESHEETS_PATH="${HOME_DIR}/local/lib/docbook-xsl-1.72.0" STYLESHEET_ONE_PAGE="docbook.xsl" XML="linenumbering.xml" OUT="linenumbering" java -classpath $CP6 -Xmx1024m $INVOKE -o "${OUT}".html $XML "${STYLESHEETS_PATH}"/xhtml/"${STYLESHEET_ONE_PAGE}" use.extensions=1 linenumbering.extension=1 linenumbering.everyNth=1 linenumbering.separator=' >' linenumbering.width=4 export CLASSPATH=$OLD_CP
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]