Commit 4ecb3adc authored by Pierre-Yves Buard's avatar Pierre-Yves Buard
Browse files

Intégration du nom du serveur pour les images dans les pdfs

parent 6652bd7e
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -92,10 +92,12 @@ declare function max.util:addHTMLClass($htmlNode as node(), $targetId as xs:stri
declare function max.util:xml2pdf($xml as element(), $xsl as xs:string, $project as xs:string, $id){
let $projectPrettyName := max.config:getProjectPrettyName($project)
let $baseURI:= max.util:getRelativeRootPath($project)
let $host := substring-before(request:uri(),request:path())
let $xsl := xslt:transform($xml, $xsl,
        map{
        "prettyName":$projectPrettyName,
        "idProject":$id,
	"host":$host,
        "project" : $project,
        "locale": max.i18n:getLang($project)
        })