hi, here's a late night question: I'm trying to use the functx xquery library in my ML application.
Firstly, I had to add declare default function namespace "http://www.w3.org/2005/xpath-functions"; to the module as it doesn't use the fn: prefix for built-in functions. Secondly, when including this module I get following "compile time" error: XDMP-NOBASEURI: (err:FONS0005) resolve-uri($refNode) -- Base uri undefined in the static context in /app/shared/functx.xqy, on line 1738, in functx:open-ref-document() [1.0-ml] declare function functx:open-ref-document ( $refNode as node() ) as document-node() { if (base-uri($refNode)) then doc(resolve-uri($refNode, base-uri($refNode))) else doc(resolve-uri($refNode)) (: <==== problem is encountered here :) } ; Looking this up on the web reveals that this is an xquery "bug" that has been "fixed" in May 2008 (see http://www.w3.org/Bugs/Public/show_bug.cgi?id=5207) I must say I have trouble figuring out whether the error is due to the ML implementation, or a problem with the functx library. For the time being, I can simply comment this function out as I have no immediate use for it, but in general I'd like to know how to make this work. Probably, ML provides their own implementation of this functx function? Thanks, Jakob. _______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general
