From: Dannes W. <da...@ex...> - 2012-01-15 19:43:23
|
Hi, I updated the try-catch implementation in 1.5/trunk to match the latest (and last) XQuery 3.0 specification. The updated spec is incompatible with the old spec, so if you already use the try-catch expression, you need to change your code. Note: the ANTLR code hasn't been updated yet, this will be done later this week. Until then no XQuery compilation errors will be visible. Example code: xquery version '3.0'; try { fn:error(fn:QName('http://www.w3.org/2005/xqt-errors', 'err:FOER0000')) } catch * { $err:code, $err:value, " module: ", $err:module, "(", $err:line-number, ",", $err:column-number, ")" } Refs: - Updated Wiki : http://atomic.exist-db.org/HowTo/XQuery3/Try-CatchExpression - W3C specification : http://www.w3.org/TR/xquery-30/#id-try-catch kind regards Dannes Wessels -- eXist-db Native XML Database http://www.exist-db.org |