David Lam wrote:
Hi hi, I haven't started yet, but I'm just started learning XQuery and the MarkLogic software... and I'm looking at the API, and theres like all these "classes" with the same prefix.For example, there's five sections of methods with the "xdmp:" prefix, and three with the "cts:" prefix... Is there anyway to know, when coming across reading a prefix:function like "xdmp:redirect-response("dump.xqy")", to know that redirect-response is described in the AppServer (xdmp:) section other than to just guess? I mean, is there a reason why its called xdmp:redirect-response() over AppServer:redirect-response?
The prefixes are namespaces. xdmp and cts and a few others are MarkLogic-specific namespaces holding extension functions. XDMP stands for XML Data Management Platform; CTS stands for Core Text Search.
The sections you're talking about are arbitrary separations designed to make reading the docs easier. You can read about all the functions in one go here: http://developer.marklogic.com/pubs/3.2/apidocs/All.html.
The commonly used built-in functions are in the "xdmp" namespace unless they're text search specific in which case they're in "cts". The "fn" prefix is the default and isn't generally required. The other prefixes are less used but there to scope library functions together.
-jh- _______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general
