amiro 02/02/12 11:24:31
Modified: java/xdocs/sources/xsltc README.xsltc
Log:
udpated doc
Revision Changes Path
1.3 +21 -2 xml-xalan/java/xdocs/sources/xsltc/README.xsltc
Index: README.xsltc
===================================================================
RCS file: /home/cvs/xml-xalan/java/xdocs/sources/xsltc/README.xsltc,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- README.xsltc 17 Dec 2001 15:33:40 -0000 1.2
+++ README.xsltc 12 Feb 2002 19:24:31 -0000 1.3
@@ -1,5 +1,5 @@
NAME
- xsltc - Apache/Xalan XSLT Compiler
+ xsltc - optional command wrapper for Apache/Xalan XSLT Compiler
SYNOPSIS
xsltc [-o <output>] [-d <directory>] [-j <jarfile>]
@@ -7,7 +7,7 @@
DESCRIPTION
This command-line tool is a wrapper for the Java class
- org.apache.xalan.xsltc.cmdline.Compile
+ org.apache.xalan.xsltc.cmdline.Compile. (See CODE below)
The Sun XSLT Compiler is a Java-based tool for compiling XSLT
stylesheets into lightweight and portable Java byte codes
@@ -68,6 +68,25 @@
<stylesheet> A path name of an input stylesheet file.
+CODE
+ Here is an example wrapper script to implement this command.
+ You should define 'INSTALLDIR' to be the directory where you
+ have installed XalanJ, for example, '/usr/local/xml-xalan'.
+
+ #!/bin/sh
+ JAR=${INSTALLDIR}/java/bin/xsltc.jar
+ XER=${INSTALLDIR}/java/bin/xercesImpl.jar
+ XML=${INSTALLDIR}/java/bin/xml-apis.jar
+ JCPR=${INSTALLDIR}/java/bin/runtime.jar
+ BCEL=${INSTALLDIR}/java/bin/BCEL.jar
+ JCP=${INSTALLDIR}/java/bin/java_cup.jar
+ JLEX=${INSTALLDIR}/java/bin/JLex.jar
+ REGEXP=${INSTALLDIR}/java/bin/regexp.jar
+
+
CLASSPATH=.:${JAR}:${XER}:${XML}:${JCPR}:${BCEL}:${JCP}:${JLEX}:${REGEXP}
+ java -cp ${CLASSPATH} org.apache.xalan.xsltc.cmdline.Compile "$@"
+~
+
EXAMPLES
Example 1: Creating a translet from stylesheet 'hamlet.xsl'.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]