[xsl] loggin SAXON errors

Subject: [xsl] loggin SAXON errors
From: Bartolomeo Nicolotti <bnicolotti@xxxxxxxxx>
Date: Mon, 14 Nov 2011 12:51:24 +0100
To whom it may concern,

we use SAXON 2.0 XSLT engine from Java. Is there a way to redirect this
kind of errors:

Error on line 367 of Albatravel_OTA_HotelAvailRS2OTA_HotelAvailRS.xslt:
  XPTY0004: A sequence of more than one item is not allowed as the
second operand of 'to' (1, 1) 
  at xsl:for-each
(file:///usr/local/tomcat/webapps/WS_DynPkg_1_6_1//xslt/OTA2OTAAlbatravel/Albatravel_OTA_HotelAvailRS2OTA_HotelAvailRS.xslt#66)

processing /siap-concat/envelope[1]/response[1]/hotels[1]/hotel[1]/agreement[1]
  at xsl:for-each
(file:///usr/local/tomcat/webapps/WS_DynPkg_1_6_1//xslt/OTA2OTAAlbatravel/Albatravel_OTA_HotelAvailRS2OTA_HotelAvailRS.xslt#52)
     processing /siap-concat/envelope[1]/response[1]/hotels[1]/hotel[1]
OTA_literal_HttpPost class
com.siap.DPKWebServices.Util.OTA_literal_HttpPost.queryHttp( String
uri=http://kalima.worldwidehotelink.com/call.php,
OTA_HotelAvail )net.sf.saxon.trans.XPathException: A sequence of more
than one item is not allowed as the second operand of 'to' (1, 1)

from Standard in to a String so that we can put then in a log?

Many thanks

Best regards

Bartolomeo

Current Thread