Re: [MarkLogic Dev General] Undefined function error()

2009-03-08 Thread Florent Georges
Norman Walsh wrote: > FWIW, I cut and paste the following prolog into all my > queries. > xquery version "1.0-ml"; > declare default function namespace > "http://www.w3.org/2005/xpath-functions";; > declare option xdmp:mapping "false"; Interesting. While I totally agree with the

RE: [MarkLogic Dev General] Undefined function error()

2009-03-07 Thread Geert Josten
> > FWIW, I cut and paste the following prolog into all my queries. > > > > xquery version "1.0-ml"; > > > > declare default function namespace > > "http://www.w3.org/2005/xpath-functions";; > > > > declare option xdmp:mapping "false"; > > > > The first line assures I'm using standard XQuery

Re: [MarkLogic Dev General] Undefined function error()

2009-03-06 Thread Norman Walsh
Norman Walsh writes: > FWIW, I cut and paste the following prolog into all my queries. > > xquery version "1.0-ml"; > > declare default function namespace "http://www.w3.org/2005/xpath-functions";; > > declare option xdmp:mapping "false"; > > The first line assures I'm using standard XQuery

Re: [MarkLogic Dev General] Undefined function error()

2009-03-06 Thread Norman Walsh
Geert Josten writes: > Or put the following line in the prolog.. > > declare default function namespace "http://www.w3.org/2005/xpath-functions";; FWIW, I cut and paste the following prolog into all my queries. xquery version "1.0-ml"; declare default function namespace "http://www.w3.org/

Re: [MarkLogic Dev General] Undefined function error()

2009-03-06 Thread Florent Georges
Danny Sokolsky wrote: > This is an implementation-defined behavior in MarkLogic > Server, which is allowed according to the spec. Yes, but I am not sure this is in the spirit of the REC. It says this is allowed but not recommended, so I guess it just let the door open for some specialized i

RE: [MarkLogic Dev General] Undefined function error()

2009-03-05 Thread Danny Sokolsky
c General ML Subject: Re: [MarkLogic Dev General] Undefined function error() Danny Sokolsky wrote: > This is because the default namespace of the library module is your > library namespace (http://test.com). Thanks, Danny. However, I didn't find that rule in the REC. The on

Re: [MarkLogic Dev General] Undefined function error()

2009-03-05 Thread Florent Georges
Danny Sokolsky wrote: > This is because the default namespace of the library module is your > library namespace (http://test.com). Thanks, Danny. However, I didn't find that rule in the REC. The only relevant text I found is the definition of a default function namespace decl.

RE: [MarkLogic Dev General] Undefined function error()

2009-03-04 Thread Geert Josten
eral-boun...@developer.marklogic.com] On Behalf Of > Florent Georges > Sent: Wednesday, March 04, 2009 4:11 PM > To: MarkLogic General ML > Subject: [MarkLogic Dev General] Undefined function error() > > > Hi, > > I got an error message I don't understand r

RE: [MarkLogic Dev General] Undefined function error()

2009-03-04 Thread Danny Sokolsky
clare function t:fun() { fn:error((), 'bla bla') }; -Danny -Original Message- From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Florent Georges Sent: Wednesday, March 04, 2009 4:11 PM To: MarkLogic General ML Subject: [Ma

[MarkLogic Dev General] Undefined function error()

2009-03-04 Thread Florent Georges
Hi, I got an error message I don't understand regarding the error() function not existing. I put the following in the file /Modules/test-error.xq: xquery version "1.0"; module namespace t = "http://test.com";; declare function t:fun() { error((), 'bla bla') }; and ru