The conversion module is part of the conversion processing pipeline. These functions provide some basic path manipulation functions.
To use the conversion module as part of your own XQuery module, include the following line in your XQuery prolog:
import module namespace cvt = "http://marklogic.com/cpf/convert"
at "/MarkLogic/conversion/convert.xqy";
You will need to ensure that the conversion module is loaded into the same modules database as the importing module.
The library namespace prefix cvt
is not predefined in
the server.
Function name | Description |
---|---|
cvt:basename | Return the filename part of the URI, cutting off any query strings or fragments. |
cvt:basepath | Return the base path of the URI, cutting off the filename. |
cvt:destination-uri | Construct the destination URI from the source URI using the following rules: The path prefix of the destination URI is the same as the source URI's. |
cvt:part-uri | Construct the URI for the part using the following rules: The path prefix of the part URI is the same source URI's, followed by a subdirectory name. |
cvt:save-converted-documents | Save a set of converted documents, with appropriate links. |