Commit 6db73edf authored by Jerome Chauveau's avatar Jerome Chauveau
Browse files

clean

parent 347b686e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -27,7 +27,7 @@ declare function utils:doc-to-html($collection as xs:string?, $doc as xs:string,
        let $declaration := "declare variable $doc external; declare variable $lang external;"
        let $import := "import module namespace vocabulary = '"|| $ns ||"' at '" || $xqFilePath ||"';"
        let $documentPath := if ($collection) then $collection || '/' || $doc || '.xml' else $doc || '.xml'
        let $doc := database:get-document($collection || '/' || $doc || '.xml')
        let $doc := database:get-document($documentPath)
        let $query := 'vocabulary:doc-to-html($doc, $lang)'
        return xquery:eval($import ||  $declaration || $query, map {'doc' : $doc, 'lang': $lang})
    }