Commit 4e205f50 authored by Wolfgang's avatar Wolfgang

Fix epub generation for documentation

parent 44794a2c
......@@ -106,7 +106,7 @@ declare function nav:get-section-heading($config as map(*), $section as node())
declare function nav:get-next($config as map(*), $div as element(), $view as xs:string) {
let $next := nav:get-next($config, $div)
return
if ($config?context instance of document-node() or $next/ancestor::*[. is $config?context]) then
if (empty($config?context) or $config?context instance of document-node() or $next/ancestor::*[. is $config?context]) then
$next
else
()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment