Commit cc38d7ee authored by Mathias Goebel's avatar Mathias Goebel 🎠
Browse files

prepare for automatic link injection

parent 5bdd1e59
......@@ -462,9 +462,9 @@ as element(xhtml:li)* {
element xhtml:ul {
attribute class {"link-list-horizontal"},
let $this-map := $map($tguri)
let $surface-sequence := $this-map ! (./@target => substring-after("surface[@n='") => substring-before("']//"))
let $surface-sequence := $this-map ! (./@target => substring-after("surface[@n='") => substring-before("']/"))
for $link at $pos in $this-map
let $page := $link/@target => substring-after("surface[@n='") => substring-before("']//")
let $page := $link/@target => substring-after("surface[@n='") => substring-before("']/")
let $index-of := index-of($surface-sequence, $page)
let $count := count( $index-of )
where $pos = $index-of[1]
......
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