Loading TOC...

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 :)
  

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.