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

Re: Re: XSLT2 - which parts solve real 1.0 problems,which make

  • To: xml-dev@l...
  • Subject: Re: Re: XSLT2 - which parts solve real 1.0 problems,which makes coffee? - was Re: Streaming XML
  • From: Uche Ogbuji <Uche.Ogbuji@f...>
  • Date: Sat, 01 Jan 2005 11:45:31 -0700
  • In-reply-to: <cr2kg3$1p1$1@s...>
  • Organization: Fourthought, Inc.
  • References: <E1CkAPl-0000bH-00@u...> <1104456333.3038.14.camel@borgia> <f8da4eba0412301913514c47ae@m...> <cr2kg3$1p1$1@s...>

xslt2
On Fri, 2004-12-31 at 15:27 +1100, Dimitre Novatchev wrote:
> One has to realize that error raising/handling in a functional language is 
> essentially nondeterministic and much more challenging as such. XPath 1.0 
> compatibility would also be very problematic, as there's almost no such 
> thing as raising an error in XPath 1.0.

I don't understand.  There are some errors defined for XPath 1.0, e.g.
using a namespace prefix that is not declared in the context.

Side note: the example in Mike Kay's saxon:try extension seems to
intimate that 1 div 0 is an error, which it isn't: it's just Inf.

The spec does not say how implementations should deal with such errors
(correctly so), but there are errors defined.


> More on implementing exceptions in a functional language can be found in the 
> classic work of Simon-Peyton Jones "Tackling the awkward squad: monadic 
> input/output, concurrency, exceptions, and foreign-language calls in 
> Haskell", at 
> http://research.microsoft.com/Users/simonpj/papers/marktoberdorf/
> 
> While I actually made some successful experiments 1 1/2 years ago, it seems 
> too early to expect these in XSLT. My predictions (which are typically 
> optimistic) are for HOF support in XPath/XSLT 3.0 and try/catch-type error 
> handling in XPath/XSLT 4.0.

I appreciate this caution, but I think that providing error handling
declarations, dynamic evaluate and higher-order-functions in XSLT 2.0
would have been much more useful than any of the things that did make it
in.

I find Mike Kay's recounting of the history of the try/catch idea very
interesting as an illustration of how close integration with XQuery
proved detrimental in the development of XSLT and XPath 2.0.


-- 
Uche Ogbuji                                    Fourthought, Inc.
http://uche.ogbuji.net    http://4Suite.org    http://fourthought.com
Use CSS to display XML - http://www.ibm.com/developerworks/edu/x-dw-x-xmlcss-i.html
Full XML Indexes with Gnosis - http://www.xml.com/pub/a/2004/12/08/py-xml.html
Be humble, not imperial (in design) - http://www.adtmag.com/article.asp?id=10286
UBL 1.0 - http://www-106.ibm.com/developerworks/xml/library/x-think28.html
Use Universal Feed Parser to tame RSS - http://www.ibm.com/developerworks/xml/library/x-tipufp.html
Default and error handling in XSLT lookup tables - http://www.ibm.com/developerworks/xml/library/x-tiplook.html
A survey of XML standards - http://www-106.ibm.com/developerworks/xml/library/x-stand4/
The State of Python-XML in 2004 - http://www.xml.com/pub/a/2004/10/13/py-xml.html


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.