I have found that in modules, "fn:" is not assumed, I need to use fn: for all 
the standard xquery functions like fn:string() fn:concat() etc 
I dont know if this is a feature or a bug.
 

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Florent Georges
Sent: Sunday, December 06, 2009 9:51 AM
To: MarkLogic General ML
Subject: [MarkLogic Dev General] Initial value of the default functionnamespace

  Hi,

  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.

  I haven't found the initial value of this static context
component in the documentation.  Any pointer?

  Regards,

-- 
Florent Georges
http://www.fgeorges.org/




















      

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

Reply via email to