Loading src/main/core/utils.xqm +1 −1 Original line number Diff line number Diff line Loading @@ -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}) } Loading Loading
src/main/core/utils.xqm +1 −1 Original line number Diff line number Diff line Loading @@ -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}) } Loading