From: Florent G. <li...@fg...> - 2009-05-23 15:30:59
|
John Snelson wrote: Hi John, > If there are no location hints, XQilla will call user > supplied ModuleResolver: > [...] Thanks for your response. If I can suggest a little improvement to the doc, I think this would be useful on a separate page with all processor dependent features (and how to supply a resolver, etc.) Kind regards, -- Florent Georges http://www.fgeorges.org/ |
From: Florent G. <li...@fg...> - 2009-05-23 16:23:41
|
John Snelson wrote: > If there are no location hints, XQilla will call user > supplied ModuleResolver: If I am right, the resolver gives back to XQilla a list of URIs to build the module from. If it is, how are those URIs dereferenced? Have those URIs to point to an XQuery library module? Is it possible to point to extension functions (written in C++?) Regards, -- Florent Georges http://www.fgeorges.org/ |
From: John S. <joh...@or...> - 2009-05-26 10:21:12
|
Hi Florent, Florent Georges wrote: > John Snelson wrote: > >> If there are no location hints, XQilla will call user >> supplied ModuleResolver: > > If I am right, the resolver gives back to XQilla a list of URIs to build the module from. If it is, how are those URIs dereferenced? Have those URIs to point to an XQuery library module? Is it possible to point to extension functions (written in C++?) You're correct that the ModuleResolver is called when there aren't any location hints. The URIs returned by the module resolver are resolved by the XMLEntityResolver objects registered, or by XQilla's default URI resolution. If there isn't a ModuleResolver registered the XMLEntityResolver is still called for the module, but the system ID will be 0. As such, the ModuleResolver class is probably really only a short cut for those who don't want to implement an XMLEntityResolver. External functions are an orthogonal issue. If the module resolved declared external functions, resolution of those occurs when they are used at a later stage in processing. John -- John Snelson, Oracle Corporation http://snelson.org.uk/john Berkeley DB XML: http://oracle.com/database/berkeley-db/xml XQilla: http://xqilla.sourceforge.net |