Return-Path: Delivered-To: apmail-xml-xalan-cvs-archive@xml.apache.org Received: (qmail 31059 invoked by uid 500); 12 Feb 2002 19:24:32 -0000 Mailing-List: contact xalan-cvs-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: Delivered-To: mailing list xalan-cvs@xml.apache.org Received: (qmail 31048 invoked from network); 12 Feb 2002 19:24:32 -0000 Date: 12 Feb 2002 19:24:31 -0000 Message-ID: <20020212192431.90880.qmail@icarus.apache.org> From: amiro@apache.org To: xml-xalan-cvs@apache.org Subject: cvs commit: xml-xalan/java/xdocs/sources/xsltc README.xsltc X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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 ] [-d ] [-j ] @@ -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 @@ 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: xalan-cvs-unsubscribe@xml.apache.org For additional commands, e-mail: xalan-cvs-help@xml.apache.org