Re: [MarkLogic Dev General] Marklogic standards

2011-02-22 Thread ambika arumugam
Thanks Geert. I tried the command cts:avg and cts:sum but it shows up undefined function cts:avg(cts:element-values(xs:QName("int"), (), ("type=int", "item-frequency"))) I am trying to learn this.The cts:element-values works as i have created the element range index but cts:avg is not

Re: [MarkLogic Dev General] Marklogic standards

2011-02-22 Thread Geert Josten
Hi Ambika, There are best practices for MarkLogic Server, but not really documented in a concise document. You will find plenty PDF documents that are well worth reading, here: http://developer.marklogic.com/docs. I can recommend reading at least the Application Developer's Guide: http://devel

[MarkLogic Dev General] Marklogic standards

2011-02-22 Thread ambika arumugam
Hi all, Do we have something like Marklogic standards or best coding practices to follow. If there are such standards please share those which will help me. Thanks and Regards Ambika ___ General mailing list General@developer.marklogic.com http://develop

Re: [MarkLogic Dev General] ML 4.2-2 throws error on empty function

2011-02-22 Thread John Snelson
Hi David, You're correct, this is a change to the XQuery parser in 4.2-2 to make it more conformant to the XQuery specification. John On 22/02/11 17:28, David Sewell wrote: > We have not changed the location of our Modules DB (on the filesystem in > our case). Possibly something else in our env

Re: [MarkLogic Dev General] ML 4.2-2 throws error on empty function

2011-02-22 Thread David Sewell
We have not changed the location of our Modules DB (on the filesystem in our case). Possibly something else in our environment changed, but I was assuming it was the upgrade to 4.2-2. On Tue, 22 Feb 2011, seme...@hotmail.com wrote: > > I've noticed that an empty function seems to work when the Mo

Re: [MarkLogic Dev General] ML 4.2-2 throws error on empty function

2011-02-22 Thread seme...@hotmail.com
I've noticed that an empty function seems to work when the Modules DB is off the filesystem, but throws a syntax error when the Modules DB is an actual DB. > Date: Tue, 22 Feb 2011 10:11:05 -0500 > From: dsew...@virginia.edu > To: general@developer.marklogic.com > Subject: [MarkLogic Dev Genera

[MarkLogic Dev General] ML 4.2-2 throws error on empty function

2011-02-22 Thread David Sewell
Just noticed a server error when running a script that had been working fine. It turns out that until this release, the following code worked fine, returning the ML version number: xquery version "1.0-ml"; declare function local:handle-ref() as item()* { }; xdmp:version() With 4.2-2, it throws a