At 2009-12-06 14:50 +0000, Florent Georges wrote:
I am using collection() in a main module (*.xqy) with strict dialect, with no problem. I have factorized out that call to a function in a library module, also with strict dialect. But now, the call to collection results in err:XPST0017 ("XDMP-UNDFUN: (err:XPST0017) Undefined function collection()").If I use fn:collection() or declare the default function namespace in the prolog, everything run fine. But I wonder why the default function namespace seems to be initialized to different values in both cases.
In Mark Logic, the default function namespace for a library module is the library module's namespace.
I haven't found the initial value of this static context component in the documentation. Any pointer?
I've looked this up and in XQuery section C.1 it states that an implementation is allowed to overwrite the default function namespace as a default.
I hope this helps. . . . . . . . . . . Ken -- XSLT/XQuery/XPath training after http://XMLPrague.cz 2010-03-15/19 Vote for your XML training: http://www.CraneSoftwrights.com/q/i/ Crane Softwrights Ltd. http://www.CraneSoftwrights.com/q/ Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video Video lesson: http://www.youtube.com/watch?v=PrNjJCh7Ppg&fmt=18 Video overview: http://www.youtube.com/watch?v=VTiodiij6gE&fmt=18 G. Ken Holman mailto:[email protected] Male Cancer Awareness Nov'07 http://www.CraneSoftwrights.com/q/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal _______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general
