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 working. Am i missing something ?
and is the cts:avg same as fn:avg??
Regards
Ambika
On Wed, Feb 23, 2011 at 12:43 PM, Geert Josten <[email protected]>wrote:
> 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://developer.marklogic.com/learn/4.2/app-developer-guide
>
>
>
> There are some generic XQuery coding practices documents on internet,
> though. Perhaps those are a good starting point for you.
> http://xqdoc.orgcontains a coding style guideline as well as provides tools
> to generate
> documentation out of your code.
>
>
>
> Kind regards,
>
> Geert
>
>
>
> *Van:* [email protected] [mailto:
> [email protected]] *Namens *ambika arumugam
> *Verzonden:* woensdag 23 februari 2011 7:49
> *Aan:* General MarkLogic Developer Discussion
> *Onderwerp:* [MarkLogic Dev General] Marklogic standards
>
>
>
> 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
> [email protected]
> http://developer.marklogic.com/mailman/listinfo/general
>
>
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general