Prise en compte de la text_hook.xsl dans la fonction fragment_html
max.xq ligne 276 :
ajouter max.config:getXSLTAddons($project, $route))
dans la fonction ci-dessous :
%rest:path("/{$project}/fragment_html/{$id}")
function max:getHTMLByID($project, $id, $xsl, $xslparams as xs:string *, $wrap as xs:string ?) as element(){
let $xml := max.api:getXMLByID(max.config:getProjectDBPath($project), $id)
let $xsltDoc := max.util:buildXSLTDoc(
max.config:getDefaultTextXSL($project),
if ($xsl) then file:parent(static-base-uri()) || string("editions/" || $project || "/ui/xsl/" || $xsl) else ()
)