Loading TOC...

MarkLogic Server 11.0 Product Documentation
xdmp:set-response-content-type

xdmp:set-response-content-type(
   $name as xs:string
) as empty-sequence()

Summary

Sets the response content-type.

In an isolated evaluation context (see xdmp:is-isolated), this function is not available and throws XDMP-ISOLATED.

Parameters
name The content type.

Example

xdmp:set-response-content-type("text/html")

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