File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -61,13 +61,17 @@ as element()* {
6161 Print the hierarchical context of a hit.
6262:)
6363declare %private function dq:print-headings ($section as element ()*, $docXPath as xs:string) {
64- $section/ancestor-or-self::chapter/title//text (),
64+ let $nodeId := util:node-id ($section)
65+ let $uri :=
66+ util:document-name (root ($section)) || "?" || $docXPath || "& id=D" || $nodeId
67+ return
68+ <a href = "{$uri} " >{$section/ancestor-or-self::chapter/title/text ()}</a>,
6569 for $s at $p in $section/ancestor-or-self::section
6670 let $nodeId := util:node-id ($s)
6771 let $uri :=
6872 util:document-name (root ($s)) || "?" || $docXPath || "& id=D" || $nodeId || "#D" || $nodeId
6973 return
70- (" > " , <a href = "{$uri} " >{$s/title// text ()}</a>)
74+ (" > " , <a href = "{$uri} " >{$s/title/text ()}</a>)
7175};
7276
7377(:~
You can’t perform that action at this time.
0 commit comments