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

Re: saxon:try()

Subject: Re: saxon:try()
From: Colin Paul Adams <colin@xxxxxxxxxxxxxxxxxx>
Date: Fri, 04 Jan 2008 14:39:09 +0000
Re:  saxon:try()
>>>>> "Florent" == Florent Georges <lists@xxxxxxxxxxxx> writes:


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

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

But that goes against the declarative nature of XSLT.

xsl:variable declares the definition of a value. It doesn't indicate
execution at all.

The reference to the variable, which is inside the ex:try, is the
most logical place to think of the evaluation occuring. Or rather, it
is the place at which you access the value. 

If you DIDN'T access the variable within the transformation at all,
when should the error be raised? Prior to the execution of the initial
template? That would be a bit harsh.
-- 
Colin Adams
Preston Lancashire

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Cast Your Vote

We need your help – Vote for DataDirect XML Products!

  • Best SOA or XML site

Winners and finalists announced at SOA World Conference in November.

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-2007 All Rights Reserved.