
xdmp:uri-format( $uri as xs:string ) as xs:string
Returns the format of the given URI as matched in the mimetypes configuration.
| Parameters | |
|---|---|
| uri | The document URI. |
xdmp:uri-format("example.txt")
=> text
xdmp:uri-format("example.xml")
=> xml
xdmp:uri-format("example.json")
=> json
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.