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

RE: XSLT2 - which parts solve real 1.0 problems, whichmakes co


saxon try
> > and try/catch.
> 
> Ooh.  Intriguing.  We had a discussion about such extensions in the
> 4Suite mailing list a few years back.  My own proposal was for special
> XSLT error templates that could "match" or trigger on error 
> conditions,
> assuming a very simple XML vocab for XSLT error communication in the
> first place.  Then there could be some sort of error mode so that
> explicitly scoped try/catch constructs were not necessary.  Rather,
> simple heuristics would provide for matching current error and error
> mode to error template.
> 
> Do you know of or have any references to any particular exception
> handling proposals from the XSLT 2.0 development process?

There were a number of iterations within the WGs on this. Try/Catch was
initially tackled as a joint item between XQuery and XSLT. Then XQuery
decided that it would be a mistake to define try/catch before defining
transaction semantics, which are part of the post-1.0 update proposal. The
XSL WG then looked briefly at various ideas for an XSLT-only solution,
either at the XPath level or the XSLT level, but it foundered partly because
of the difficulty of defining the semantics precisely enough, partly because
it's not clear how far one should go in terms of catching specific errors
versus general errors: in the end it probably didn't get in because no-one
was able to produce a really complete and convincing proposal, even though
the WG liked the idea in principle.

I do in fact have a user-written Saxon extension in this space waiting to be
integrated, but like many such contributions it contains code changes only,
no documentation or tests or design, so it's not all that useful. In the
meantime Saxon SA does contain a very simple saxon:try() pseudo-function:
see http://www.saxonica.com/documentation/extensions/functions/try.html

Michael Kay


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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.