[xsl] [XSLT 2] rescue; how to recover from errors?

Subject: [xsl] [XSLT 2] rescue; how to recover from errors?
From: Tobias Reif <tobiasreif@xxxxxxxxxxxxx>
Date: Sat, 14 Jun 2003 21:38:15 +0200
[repostet with a more descriptive subject line]

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



Current Thread