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

RE: <xsl:message terminate="yes"> results in zero byte

Subject: RE: <xsl:message terminate="yes"> results in zero byte file getting written
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Thu, 29 Mar 2007 20:12:11 +0100
RE:  <xsl:message terminate="yes"> results in zero byte
> I am also facing similar kind of issue ,during transfor if I 
> have xsl:message with terminate=yes and it is redirected to 
> System.err and It does not fall as Exception

In Saxon, by default, if you don't specify a MessageReceiver and don't do
anything to change the behaviour of the standard one, then <xsl:message
terminate="yes">ABANDON SHIP</xsl:message> should result in the text
"ABANDON SHIP" being written to System.err, and to an exception of class
net.sf.saxon.trans.TerminationException being thrown, with the exception

"Processing terminated by xsl:message at line NNN in URI.xsl"

If you are running from the command line, the application will terminate
with exit code 1.

If you want to capture the message text in your application, you need to
call setMessageEmitter() to supply your own code to receive xsl:message

Michael Kay

Current Thread


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.
First Name
Last Name
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.