admin:mimetype( $name as xs:string, $extensions as xs:string, $format as xs:string ) as element(mt:mimetype)
This function constructs a mimetype specification.
Parameters | |
---|---|
name | The name of the mimetype. |
extensions | The extension(s) for the mimetype. |
format |
A valid format for the mimetype. Must be on of:
binary ,xml , or text .
|
xquery version "1.0-ml"; import module namespace admin = "http://marklogic.com/xdmp/admin" at "/MarkLogic/admin.xqy"; admin:mimetype("application/foo","foo bar","binary") (: returns the mimetype specification :)