Subject: [xsl] Re: How do I properly define a unix saxon script command line From: "Catherine Wilbur cwilbur@xxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Wed, 12 Nov 2014 21:42:30 -0000 |
Getting following Java Error (does anyone know what is causing this) LoadLibraryAPInputDBTable_Cron.scr[156]: java: not found. Do you have any idea why this error is occuring? This is my call to Java for Saxon (copied a portion of my Unix shell script here) # Set up data file directories # ===================================== FinesrvCronDir=/usr/local/finesrv/erp/jdedwardsoneworld/cron FinesrvDataDir=/usr/local/finesrv/erp/jdedwardsoneworld/FABS/DATA/LibrVouch FinesrvJavaDir=/usr/java5 FinesrvSaxonDir=/usr/local/finesrv/erp/jdedwardsoneworld/cron/Saxon ## 5) Convert Library A/P Interface file from XML to CSV # If the file exists then convert XML file to a CSV file # ================================================================== if [ -s $FinesrvDataDir/Library_Invoice_Interface.xml ] then # # Initialize Java Environment # Change the directory to execute the Java SAXON-HE XSL Processor to convert XML file to CSV # ================================================================== cd $FinesrvJavaDir # Saxon XSL processor will execute the stylesheet # The stylesheet specifies the specific rules as to how the XML file is to be converted. # This command below is used to call the Saxon processor # java -jar:/classpath/saxon9he.jar -s:/classpath/InputFile.xml -xsl:/classpath/stylesheet.xsl -o:/classpath/OutputFile.csv # ================================================================== java -jar:$FinesrvSaxonDir/saxon9he.jar -s:$FinesrvDataDir/Library_Invoice_Interface.xml -xsl:$FinesrvCronDir/LibrXML2CSV_stylesheet.xsl -o:$FinesrvDataDir/Library_Invoice_Interface.csv # # 6) Remove XML Library A/P Interface file # Remove XML file once it is converted # ===================================== #rm $FinesrvDataDir/Library_Invoice_Interface.xml fi _____________________________________________________________________ Catherine Wilbur | Senior Application Programmer | IT Services (E) cwilbur@xxxxxxxxxxx From: Catherine Wilbur/cwilbur/University of Windsor To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Date: 11/11/2014 04:46 PM Subject: How do I properly define a unix saxon script command line Want to write a command line to call Saxon processor from a unix script line. Am using Saxon-HE from Unix command line to convert my XML file into a CSV file so it can be uploaded into a DB Table. We are using the DB table as input into our AP interface in ERP E1. Had to switch to Saxon processor because xsltproc does not work with xsl 2.0. In the command line call I need to specify two classpaths (Classpath for JAVA, Classpath for SAXON jar files) How would I call the saxon processor in a unix script and pass it the following information JavaClassPath, SaxonJarClassPath, InputFile, StylesheetFile, OutputFile So far this is the unix command line I came across on the web. Read thru page 853-854 of XSLT 2.0 3rd Edition Programmer's Reference and it does not quite give me what I am looking for. Where would I find all the Saxon command line options Want to do saxon conversion of XML file within a unix shell script. We have Java on Unix box. Loaded Saxon jar files in a different directory on unix box. Loaded stylesheet on unix box. Loaded InputFile on unix box. saxon br saxonjarclasspath/saxon.jar -m javaclasspath -s:Input_File -xsl:Stylesheet_File bo Output_File _____________________________________________________________________ Catherine Wilbur | Senior Application Programmer | IT Services 401 Sunset Avenue, Windsor ON Canada N9B 3P4 (T) 519.253.3000 Ext. 2745 | (F) 519.973.7083 | (E) cwilbur@xxxxxxxxxxx www.uwindsor.ca/its
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Splitting text nodes - xs, Martin Honnen martin | Thread | Re: [xsl] Re: How do I properly def, Wolfgang Laun wolfga |
Re: [xsl] Splitting text nodes - xs, Martin Honnen martin | Date | Re: [xsl] Re: How do I properly def, Wolfgang Laun wolfga |
Month |