|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|






