how to declare output options in sjs file in marklogic

62 Views Asked by At

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?

1

There are 1 best solutions below

0
ehennum On

xdmp.setResponseOutputMethod() should do the equivalent. See:

http://docs.marklogic.com/xdmp.setResponseOutputMethod

Hoping that helps,