You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by vh...@apache.org on 2001/05/15 18:20:25 UTC
cvs commit: xml-batik/contrib/charts convert.bat convert.sh
vhardy 01/05/15 09:20:23
Added: contrib/charts convert.bat convert.sh
Log:
Initial commit. File from Neem Praks.
Revision Changes Path
1.1 xml-batik/contrib/charts/convert.bat
Index: convert.bat
===================================================================
@echo off
if '%1'=='' goto usage
set LOCALCLASSPATH=.
for %%1 in (..\..\lib\build\xalan*.jar) do call lcp.bat %%1
for %%1 in (..\..\lib\build\xerces*.jar) do call lcp.bat %%1
echo Using classpath: %LOCALCLASSPATH%
java -classpath %LOCALCLASSPATH% -Djavax.xml.transform.TransformerFactory=org.apache.xalan.processor.TransformerFactoryImpl -Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl -Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl org.apache.xalan.xslt.Process -IN xml\%1.xml -XSL xsl\%2.xsl -OUT out\%1-%2.svg -EDUMP
goto end
:usage
echo.
echo Usage: convert.bat xml-filename xslt-stylesheet
echo.
echo Example: convert.bat data bar
echo Will convert file xml\data.xml with stylesheet xsl\bar.xsl into out\data-bar.svg
:end
echo.
echo have a nice day ;-)
1.1 xml-batik/contrib/charts/convert.sh
Index: convert.sh
===================================================================
#!/bin/sh
if [ "$1" = "" ] ; then
echo
echo "Usage : ./convert.sh xml-filename xslt-stylesheet"
echo
echo "Example: ./convert.sh data bar"
echo " Will convert file xml/data.xml with stylesheet xsl/bar.xsl into out/data-bar.svg"
exit 1
fi
if [ "$JAVA_HOME" = "" ] ; then
echo "ERROR: JAVA_HOME not found in your environment."
echo
echo "Please, set the JAVA_HOME variable in your environment to match the"
echo "location of the Java Virtual Machine you want to use."
exit 1
fi
LOCALCLASSPATH=.
for i in ../../lib/build/xalan*.jar ; do
LOCALCLASSPATH=${LOCALCLASSPATH}:$i
done
for i in ../../lib/build/xerces*.jar ; do
LOCALCLASSPATH=${LOCALCLASSPATH}:$i
done
echo "Using classpath: $LOCALCLASSPATH"
echo "$JAVA_HOME/bin/java -classpath $LOCALCLASSPATH -Djavax.xml.transform.TransformerFactory=org.apache.xalan.processor.TransformerFactoryImpl -Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl -Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl org.apache.xalan.xslt.Process -IN xml/$1.xml -XSL xsl/$2.xsl -OUT out/$1-$2.svg -EDUMP"
$JAVA_HOME/bin/java -classpath $LOCALCLASSPATH -Djavax.xml.transform.TransformerFactory=org.apache.xalan.processor.TransformerFactoryImpl -Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl -Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl org.apache.xalan.xslt.Process -IN xml/$1.xml -XSL xsl/$2.xsl -OUT out/$1-$2.svg -EDUMP
echo
echo "have a nice day ;-)"
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-dev-help@xml.apache.org