Skip to content

Commit defe872

Browse files
committed
revert debugging fix
toc is working again
1 parent cb291b7 commit defe872

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/xar-resources/modules/docbook.xql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ declare %public function docbook:to-html($node as node(), $model as map(*)) {
5454
: Generate a table of contents.
5555
:)
5656
declare %public function docbook:toc($node as node(), $model as map(*)) {
57-
let $root := root($node)
57+
let $root as element() := $model("doc")
5858
return
5959
<div>
6060
<h3>Contents</h3>

0 commit comments

Comments
 (0)