Commit c561b6cb authored by Jérôme Chauveau's avatar Jérôme Chauveau
Browse files

commentaire fonction de test que l'on conserve au cas où !

parent a6596aa7
Loading
Loading
Loading
Loading
+15 −15
Changes for max.xq: 15 added lines, 15 removed lines.
Original line number Diff line number Diff line
@@ -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