Jakob, it was added in 4.1, hence no functx in your install. --Colleen ________________________________________ From: [email protected] [[email protected]] On Behalf Of Jakob Fix [[email protected]] Sent: Monday, July 13, 2009 1:15 PM To: General Mark Logic Developer Discussion Subject: Re: [MarkLogic Dev General] functx library usage with ML
Micah, cool. This is the current distribution of functx. The function in question has probably been commented out due to the aforementioned "bug" in the spec ... Inspecting my MarkLogic install however (4.0-3 Standard Edition), there's no functx to be found anywhere .... Please let us know what you find out by asking around :) cheers, Jakob. On Mon, Jul 13, 2009 at 20:29, Micah Dubinko<[email protected]> wrote: > There is: > import module namespace functx = "http://www.functx.com" at > "/MarkLogic/functx/functx-1.0-nodoc-2007-01.xqy"; > > or a tiny bit slower but with lots of documentation comments: > import module namespace functx = "http://www.functx.com" at > "/MarkLogic/functx/functx-1.0-doc-2007-01.xqy"; > > But I now realize that the function in question is commented out in the > MarkLogic distribution, which doesn't help in this particular case. > > Let me ask around a bit.. > > -m > > On Jul 12, 2009, at 2:17 AM, Jakob Fix wrote: > >> Micah, >> >> it's the "official" distribution from Priscilla Walmsley's functx.com >> website. >> >> from your questionI gather that there is an adapted library that can >> be found among the files in the ML download? I'll have a look. >> >> thanks, >> Jakob. >> >> >> >> On Sun, Jul 12, 2009 at 02:55, Micah Dubinko<[email protected]> >> wrote: >>> >>> Jakob, >>> >>> Is this in the functx library that ships with MarkLogic, or from a >>> separate >>> download? >>> >>> -m >>> >>> On Jul 11, 2009, at 2:33 PM, Jakob Fix wrote: >>> >>>> 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 >>> >>> _______________________________________________ >>> General mailing list >>> [email protected] >>> http://xqzone.com/mailman/listinfo/general >>> >> _______________________________________________ >> General mailing list >> [email protected] >> http://xqzone.com/mailman/listinfo/general > > _______________________________________________ > General mailing list > [email protected] > http://xqzone.com/mailman/listinfo/general > _______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general _______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general
