|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Cast Your Vote
We need your help – Vote for DataDirect XML Products!
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! Subscribe in XML format
|







