Re: [xsl] How do I set up my Saxon call to update/pass back a log file

Subject: Re: [xsl] How do I set up my Saxon call to update/pass back a log file
From: "Marc marc.liste@xxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 14 Mar 2015 07:47:57 -0000
Hi Catherine,
Why redirect the error and output flow at unix level " > log.txt" isn't the solution?
Le 13/03/2015 21:13, Catherine Wilbur cwilbur@xxxxxxxxxxx a C)crit :
If this Saxon call does not work properly I want to send emails to
certain individuals plus to the production mailbox. *How do I put a log
file in this Saxon call so I trap what happened in the call and pass the
log file in the msg body when I email the log in the commented code just

     /usr/java5/bin/java -cp $SAXON_JAR net.sf.saxon.Transform

Currently I have this unix code commented out.

    # XML file did not convert properly into CSV file
    # ==================================================================
#  if [! -s $FinesrvDataDir/Library_Invoice_Interface.csv ]
#  then
#      cp $FinesrvDataDir/Library_Invoice_Interface.log
#      MessageFile=$FinesrvDataDir/Library_Invoice_Interface.tmp
#      msg="FAILED - Library Invoice data did not convert properly from
XML to CSV in the stylesheet"
#      mail -s "$msg" cwp????? < $MessageFile
#      mail -s "$msg" mkp???? < $MessageFile
#      mail -s "$msg" mka???? < $MessageFile
#      mail -s "$msg" prodmailbox@xxxxxxxxxxx < $MessageFile
#      rm ${MessageFile}
#      echo '---------------------------------------------------'
#      echo 'PROBLEM with Input data.'
#      echo 'Library A/P Interface COULD NOT BE converted from XML to CSV.'
#      echo '---------------------------------------------------'
#  fi

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
XSL-List info and archive <>
EasyUnsubscribe <-list/763474>
(by email <>)

Current Thread