[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

[no subject]

[no subject]
    /usr/java5/bin/java -cp $SAXON_JAR net.sf.saxon.Transform 
-s:$FinesrvDataDir/Library_Invoice_Interface.xml 
-xsl:$FinesrvCronDir/LibrXML2CSV_stylesheet.xsl 
-o:$FinesrvDataDir/Library_Invoice_Interface.csv 

Would like to pass an error back to my shell script.  The error would be 
because we did not code something properly or the fact we made an 
assumption regarding the XML file and now that section that was supposed 
to appear at least once does not exist (that is what happened).  We submit 
all of our production using cron jobs using shell scripts so they want me 
to trap the error in my shell script and send a message out to the 
individuals that need to look at fixing the problem.  I would not even 
know how to set up a Java application to set this up.  Have written Java 
code for batch programs but I am just a novice in this area.  Would be 
very interested in learning how to set it up in a Java application.

So was wondering how to set up the Saxon call so I can pass a log file 
back and a return code.    If an error appears then I need to send out a 
msg.  Searched the web for the options available from net.sf.saxon call.
_____________________________________________________________________
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.