Loading max.xq +15 −15 Changes for max.xq: 15 added lines, 15 removed lines. Original line number Diff line number Diff line Loading @@ -343,18 +343,18 @@ declare %private function max:invokePluginXQueries($project, $routeDoc, $id){ }; declare %rest:GET %rest:path("/{$projectId}/test/fop") %rest:produces("application/pdf") function max:testFOP($projectId){ let $pdf := max.util:xml2pdf(<TEI><div>TEST PDF !</div></TEI>, max.util:getProjectFoXsl($projectId)) return (<rest:response> <http:response status="200"> <http:header name="content-type" value="application/pdf"/> </http:response> </rest:response>, $pdf) }; No newline at end of file (:declare:) (:%rest:GET:) (:%rest:path("/{$projectId}/test/fop"):) (:%rest:produces("application/pdf"):) (:function max:testFOP($projectId){:) (: let $pdf := max.util:xml2pdf(<TEI><div>TEST PDF !</div></TEI>, max.util:getProjectFoXsl($projectId)):) (: return:) (: (<rest:response>:) (: <http:response status="200">:) (: <http:header name="content-type" value="application/pdf"/>:) (: </http:response>:) (: </rest:response>,:) (: $pdf):) (:};:) No newline at end of file Loading
max.xq +15 −15 Changes for max.xq: 15 added lines, 15 removed lines. Original line number Diff line number Diff line Loading @@ -343,18 +343,18 @@ declare %private function max:invokePluginXQueries($project, $routeDoc, $id){ }; declare %rest:GET %rest:path("/{$projectId}/test/fop") %rest:produces("application/pdf") function max:testFOP($projectId){ let $pdf := max.util:xml2pdf(<TEI><div>TEST PDF !</div></TEI>, max.util:getProjectFoXsl($projectId)) return (<rest:response> <http:response status="200"> <http:header name="content-type" value="application/pdf"/> </http:response> </rest:response>, $pdf) }; No newline at end of file (:declare:) (:%rest:GET:) (:%rest:path("/{$projectId}/test/fop"):) (:%rest:produces("application/pdf"):) (:function max:testFOP($projectId){:) (: let $pdf := max.util:xml2pdf(<TEI><div>TEST PDF !</div></TEI>, max.util:getProjectFoXsl($projectId)):) (: return:) (: (<rest:response>:) (: <http:response status="200">:) (: <http:header name="content-type" value="application/pdf"/>:) (: </http:response>:) (: </rest:response>,:) (: $pdf):) (:};:) No newline at end of file