[MarkLogic Dev General] Undefined function error()

Florent Georges lists at fgeorges.org
Wed Mar 4 16:11:03 PST 2009


  Hi,

  I got an error message I don't understand regarding the
error() function not existing.  I put the following in the
file <marklogic>/Modules/test-error.xq:

    xquery version "1.0";
    module namespace t = "http://test.com";
    declare function t:fun() {
       error((), 'bla bla')
    };

and run the following through CQ:

    xquery version "1.0";
    import module namespace t = "http://test.com"
       at "/test-error.xq";
    t:fun()

  I get the following error:

    query evaluated in Documents at file::Docs/ as 1.0 (cq v4.0-3)

    [1.0] XDMP-UNDFUN: (err:XPST0017) Undefined function error()

    Stack trace:

    in /test-error.xq line 5:
    xdmp:eval("xquery ve [...]

  Thanks in advance.  Regards,

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




















      


More information about the General mailing list