Commit 3b897d8e authored by mrodzis's avatar mrodzis 🌎
Browse files

Add a possible solution

parent f1b59a24
......@@ -39,7 +39,8 @@ declare function nav:head($node as node(), $model as map(*)) {
()
else
attribute target {"_blank"},
if ($nav:langTest or not($model("subitem")/@*[local-name() ="label-" || $nav:lang]))
(: if ($nav:langTest or not($model("subitem")/@*[local-name() ="label-" || $nav:lang])):)
if ($nav:langTest)
then string($model("item")/@label)
else string($model("item")/@*[local-name( . ) = "label-" || $nav:lang])
}
......
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