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

Re: XSLT3.0: Predictable recovery of errors when roll

Subject: Re: XSLT3.0: Predictable recovery of errors when rollback-output="no " is specified?
From: "Michael Kay mike@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 25 Jan 2015 11:55:12 -0000
 Re: XSLT3.0: Predictable recovery of errors when  roll
I agree with you, the suggestion of using xsl:variable is not fully worked
through and should probably be removed. All the examples I can think of would
be more easily handled by using a nested xsl:try/xsl:catch without the
rollback-output="no" option.

Michael Kay
Saxonica
mike@xxxxxxxxxxxx
+44 (0) 118 946 5893




On 24 Jan 2015, at 18:53, Dimitre Novatchev <dnovatchev@xxxxxxxxx> wrote:

> In section 8.3 "Recovery of Result Trees"  of the 2nd Last Call of the
> W3C XSLT 3.0 specification
> (http://www.w3.org/TR/2014/WD-xslt-30-20141002/#recovery), we read:
>
> "When rollback-output="no" is specified, it is still possible to
> ensure recovery of errors happens predictably by evaluating the
> potentially-failing code in temporary output state: typically, within
> an xsl:variable. In effect the variable acts as an explicit buffer for
> temporary results, which is only copied to the final output if
> evaluation succeeds."
>
> I feel rather confused by this statement. There is no example, backing
> it, provided and my attempts to construct such an example were not
> successful. I am beginning to think that the quoted statement above
> may not be true.
>
> In particular, how would one verify whether or not an error occurred
> (and was caught) when producing the result tree contained in a
> particular variable? Knowing this is needed in order to decide whether
> to output this variable to the final output or not.
>
> My question/request is for anyone to provide such an example.
>
> And the document will gain a lot by including such example in it.
>
> --
> Cheers,
> Dimitre Novatchev
> ---------------------------------------
> Truly great madness cannot be achieved without significant intelligence.
> ---------------------------------------
> To invent, you need a good imagination and a pile of junk
> -------------------------------------
> Never fight an inanimate object
> -------------------------------------
> To avoid situations in which you might make mistakes may be the
> biggest mistake of all
> ------------------------------------
> Quality means doing it right when no one is looking.
> -------------------------------------
> You've achieved success in your field when you don't know whether what
> you're doing is work or play
> -------------------------------------
> To achieve the impossible dream, try going to sleep.
> -------------------------------------
> Facts do not cease to exist because they are ignored.
> -------------------------------------
> Typing monkeys will write all Shakespeare's works in 200yrs.Will they
> write all patents, too? :)
> -------------------------------------
> I finally figured out the only reason to be alive is to enjoy it.

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.