I am beginner in Marklogic learning. I tried checking over the internet the difference but i don't see anything. Sorry if it's a silly question. what actually is the difference?
1 Answers
The prefix for those methods are bound to different namespaces. The namespace indicates the category, purpose, and "owner".
fn
are the standard XQuery, XPath, and XSLT functions (in this namespace: http://www.w3.org/2005/xpath-functions). You can expect them to be available in any standard XQuery, XPath, and XSLT engine.cts
functions are the MarkLogic Core Text Search built-in functions (in this namespace: http://marklogic.com/cts). They are a set of MarkLogic specific functions that are used for search and query operations.xdmp
functions are the MarkLogic XML Database Management Platform built-in functions (in this namespace: http://marklogic.com/xdmp). They are a set of MarkLogic custom functions that provide extra utility functions and MarkLogic database specific actions.
The full set of functions available in MarkLogic, broken out by category and namespace
- XQuery: https://docs.marklogic.com/all
- JavaScript: https://docs.marklogic.com/js/all

- 63,927
- 12
- 112
- 147
-
Thanks! Your answer deserves a place in MarkLogic documentation. I searched through MarkLogic website and couldn't find "XML Database Management Platform" anywhere. – Fan Li Oct 24 '20 at 12:55