[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: Sun, 06 Jan 2008 07:32:04 +0000
Re:  saxon:try()
>>>>> "Florent" == Florent Georges <lists@xxxxxxxxxxxx> writes:

    Florent> Colin Paul Adams wrote:

    >> First, what do you expect to happen? I think you are saying
    >> that the transformation should fail, even though the processor
    >> evaluates the variable during the execution of the
    >> ex:error-safe.

    Florent>   Yes.

    >> I would find that extremely confusing.

    Florent>   Why?  That's the only predictable way, isn't it?

It confuses me because now I don't know which handler will be invoked
for a particular error.

E.g. If within an ex:try block, I call unparsed-text
('file://non-existent-file'), and also reference a global variable,
which makes the same bad call to ('file://non-existent-file') within
it's own ex:try block, which handler gets invoked?

Worse, suppose the call in the global variable doesn't have a try
block? Now do I catch the error or do I creash? I can only predict
this if I know the processor internals (i.e. when the variable
actually gets evaluated). Worse still, is that this may differ even
for a particular processor, and even the author of the processor may
not be able to  predict it (think parallel processing).
-- 
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

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.