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

add data to the output

parent c5c52d4f
......@@ -38,9 +38,11 @@ function toc:table-of-contents($uri as xs:string)
for $item at $pos in $toc/tei:item
let $heading := string($item) => substring-before(" (")
let $id := replace($heading, "\W", "-")
let $surfaces := $item//tei:ref/@target/string() ! local:get-page-from-target(.)
return
element div {
attribute class {"panel panel-default"},
attribute data-surfaces { string-join($surfaces, ";") },
element div { (: heading :)
attribute class {"panel-heading"},
element h4 {
......
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