The 0.9-ml XQuery dialect is the 3.2 parser,
with some bug fixes.  We tried to minimize the
impact on 0.9-ml, but there were some fixes that
caused code that was working to stop working.
Sorry for the inconvenience.

On Nov 26, 2008, at 2:08 PM, Eric Palmitesta wrote:

Hi all,

We've just upgraded to ML 4.0-2, and I've been testing our files on an app server with "default xquery version" set to 0.9-ml. Theoretically, everything written under ML 3 should still work, correct?

Turns out search-ui.xqy in the xquery commons has a missing closing curly brace which ML 3 never complained about (I can't explain why), but ML 4 is complaining about (and rightly so, I believe).

Attached is a quick patch which solves the error:

in /lib/commons/http/search-ui/search-ui.xqy, on line 877 [0.9-ml]
XDMP-UNEXPECTED: (err:XPST0003) Unexpected token syntax error, unexpected Rbrace_

Cheers,

Eric
--- search-ui.xqy       2008-11-26 16:57:16.000000000 -0500
+++ search-ui-fixed.xqy 2008-11-26 16:57:30.000000000 -0500
@@ -874,7 +874,7 @@
                                </span>
                                </span>
                            else
- <a href="javascript:void(0);" onmouseout="$ ('abs_{$uri}').addClassName(hideClass);" onclick="toggleLoadedContent('abs_{fn:data($uri)}','request.xqy', {{method:'post',postBody:'action=show-section&uri={xdmp:url- encode($uri)}&path={fn:string($item/ @title)}',asynchronous:true},true);"> + <a href="javascript:void(0);" onmouseout="$ ('abs_{$uri}').addClassName(hideClass);" onclick="toggleLoadedContent('abs_{fn:data($uri)}','request.xqy', {{method:'post',postBody:'action=show-section&uri={xdmp:url- encode($uri)}&path={fn:string($item/ @title)}',asynchronous:true}},true);">
                            {$item/@title}
                            <span>
                            {$item/node()}
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

---
Ron Hitchens [EMAIL PROTECTED]  650-655-2351




_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to