MDEX API through XQuery details

MAX is easy to use natively in XQuery, allowing you to perform common tasks for library building such as combining the results of several queries together, building several related queries for a single click, restructuring results, and so on.

MAX contains a set of XQuery functions that execute queries of different types. There are six query types: The naming convention used is <query-type>-query. These functions take, as input, a document that represents a query. The input schema for each query type defines the structure of these input documents.These functions return another document representing the results of the query. The output schemas define the structure of these documents.