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

RE: Aborting XSL processing during a run....

Subject: RE: Aborting XSL processing during a run....
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Fri, 11 Feb 2005 16:42:12 -0000
abort run in xsl
> I think the OP wants to output a line of PHP and then stop the
> processing - xsl:message terminate="yes" operates at the 
> transformation
> time, not at the serialisation time, so there would be no output.

Actually xsl:message terminate="yes", like everything else in XSLT, can be
executed at any time the processor chooses. If this instruction is executed
at all, then it's completely undefined what output is produced by the
transformation. For example if you use xsl:result-document to create a new
output document for every input record, and you have 1000 input records, and
you use xsl:message terminate="yes" to abort processing while handling the
50th input record, then it would be entirely legitimate to find that you've
got 949 output files, one for each record *after* the 50th, because the
processor decided it would be fun to start at the end and work backwards.

Michael Kay
http://www.saxonica.com/

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.