You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by am...@apache.org on 2002/02/12 20:32:35 UTC

cvs commit: xml-xalan/java/xdocs/sources/xsltc README.xslt

amiro       02/02/12 11:32:35

  Modified:    java/xdocs/sources/xsltc README.xslt
  Log:
  updated doc
  
  Revision  Changes    Path
  1.3       +36 -3     xml-xalan/java/xdocs/sources/xsltc/README.xslt
  
  Index: README.xslt
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/xdocs/sources/xsltc/README.xslt,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- README.xslt	17 Dec 2001 15:33:40 -0000	1.2
  +++ README.xslt	12 Feb 2002 19:32:35 -0000	1.3
  @@ -1,14 +1,16 @@
   NAME
  -	xslt - Apache/Xalan XSLT runtime processor. 
  +	xslt - optional command wrapper for Apache/Xalan XSLTC runtime processor. 
   
   SYNOPSIS
  -	xslt [-j <jarfile>] [-xhs] {-u <document_url> | <document>} <class>
  +	xslt [-j <jarfile>] [-xhs] 
  +	     {-u <document_url> | <document>}  <class>
                [<name1>=<value1> ...]
   
   
   DESCRIPTION
   	This command-line tool is a wrapper for the Java class
  -	org.apache.xalan.xsltc.cmdline.Transform
  +	org.apache.xalan.xsltc.cmdline.Transform. See CODE section
  +	below.
   
   	The Sun XSLT runtime processor is a Java-based tool for 
   	transforming XML document files using a translet (compiled 
  @@ -52,6 +54,37 @@
   				pairs. A name-value pair uses the format
   				<name>=<value>.
   
  +CODE
  +	Here is an example script to implement this command. You will have
  +	to define INSTALLDIR to be the directory where you install XalanJ.
  +
  +	#!/bin/sh
  +	# apxslt - Apache XSLT run script.
  +	#
  +	# if a -j <jarfile> option is set, find it and save off the <jarfile>
  +	# argument.
  +	#
  +	jOptionSeen="0";
  +	jarfile="";
  +	for arg in $*
  +	do
  +	   if [ $arg = "-j" ] ; then
  +		jOptionSeen="1";
  +	   elif [ $jOptionSeen = "1" ] ; then
  +		jarfile=$arg
  +		jOptionSeen="0";
  +	   fi
  +	done
  +
  +	#
  +	XSLTC=${INSTALLDIR}/java/bin/xsltc.jar
  +	XERCES=${INSTALLDIR}/java/bin/xercesImpl.jar
  +	XML=${INSTALLDIR}/java/bin/xml-apis.jar
  +	CLASSPATH=.:${XSLTC}:${XERCES}:${XML}:$jarfile
  +
  +	java -cp ${CLASSPATH} org.apache.xalan.xsltc.cmdline.Transform "$@"
  +
  +	
   EXAMPLES
   	Example 1:  Processing an XML document.
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org