MarkLogic Server 11.0 Product Documentation
admin:mimetype

admin:mimetype(
   $name as xs:string,
   $extensions as xs:string,
   $format as xs:string
) as element(mt:mimetype)

Summary

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.

Example


  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 :)
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy