In XQuery I know the syntax to declare the output options like given below:
declare option xdmp:output "method=html";
How can I do the same in an SJS module?
In XQuery I know the syntax to declare the output options like given below:
declare option xdmp:output "method=html";
How can I do the same in an SJS module?
xdmp.setResponseOutputMethod()should do the equivalent. See:http://docs.marklogic.com/xdmp.setResponseOutputMethod
Hoping that helps,