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

RE: [XSLT 2] rescue

Subject: RE: [XSLT 2] rescue
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Sun, 15 Jun 2003 21:10:49 +0100
xslt unparsed text
Unfortunately there is no try-catch in XPath 2 or XSLT 2.

We debated putting one in, but people felt it was a bridge too far.
People were particularly concerned about defining exactly what state the
system was in if an error was trapped and ignored, for example, should
it effectively be required to do a "rollback" of the result tree.

Michael Kay


> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx 
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of 
> Tobias Reif
> Sent: 14 June 2003 17:28
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  [XSLT 2] rescue
> 
> 
> Hi
> 
> In Ruby I can do
> 
>    begin
>      # do something
>    rescue
>      # do something else if the above failed
>    end
> 
> How to do that in XSLT 2? (or XPath 2)
> 
> For example when the path in unparsed-text($path) does not 
> point to anything, I'd like to print a message and generate a 
> comment, and I want the transformation to be continued, not aborted.
> 
> Tobi
> 
> -- 
> http://www.pinkjuice.com/
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread
  • [XSLT 2] rescue
    • Tobias Reif - Sat, 14 Jun 2003 12:28:35 -0400 (EDT)
      • Tobias Reif - Sat, 14 Jun 2003 15:38:39 -0400 (EDT)
      • Michael Kay - Sun, 15 Jun 2003 16:10:42 -0400 (EDT) <=
      • <Possible follow-ups>
      • I-Lin Kuo - Tue, 17 Jun 2003 08:42:46 -0400 (EDT)
      • Varley, Roger - Tue, 17 Jun 2003 11:35:45 -0400 (EDT)

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.