[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: "Andrew Welch" <ajwelch@xxxxxxxxxxxxxxx>
Date: Fri, 11 Feb 2005 15:19:54 -0000
RE:  Aborting XSL processing during a run....
> Apologies. By +irregularity+ I do NOT mean an error in the
> XML. I should
> have said that , + in some particular case + we wish to bring the XSL
> processing to a close.
>
> Any ideas?

I think what you are asking for is that the output to be generated up to
the point that the stylesheet processes the 'irregularity'?

The problem for you here is that the transformation builds a result
tree, which is then serialised/linearised to output a string.  The
string isn't constructed by the transformation, it's created by the
serialiser operating on the result tree.

If you want to stop processing based on some condition in the source XML
couldn't you just do:

  <xsl:if test="some condition">
    <!-- continue processing -->
    <xsl:apply-templates/>
  </xsl:if>
  <!-- otherwise do nothing -->

If this isn't what you mean then you will have to post an example...

cheers
andrew

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.