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

Re: saxon:try()

Subject: Re: saxon:try()
From: Florent Georges <lists@xxxxxxxxxxxx>
Date: Fri, 4 Jan 2008 15:22:42 +0100 (CET)
Re:  saxon:try()
Colin Paul Adams wrote:

> >>>>> "Florent" == Florent Georges <lists@xxxxxxxxxxxx> writes:

>     Florent> 
> http://www.fgeorges.org/xslt/error-safe/error-safe.html

> This is quite interesting.

> Why do you say that the FOAR0001 error shouldn't be
> caught? XSLT doesn't define the order of execution, so it
> seems reasonable to me that the error is caught.

  Yes, this is why the error is caught, because Saxon
doesn't execute the instructions in the same order as in
their lexical representation within the stylesheet (and
that's a good thing, that's what enables lazy evaluation of
variables).

  But I think that the ex:error-safe instruction should be
exactly predictable, deterministic.  If an expression stands
lexically outside of the instruction, if it produces an
exception, it shouldn't be caught (but that's only my humble
point of view).

  The drawback is that the instruction could then be a
border for several optimization opportunities...

  So the answer to your question is "because it is defined
as such", but this is only a personal draft for a personal
extension :-).

  Regards,

--drkm























      _____________________________________________________________________________ 
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail http://mail.yahoo.fr

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.