Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fontane-notizbuecher
SADE
Commits
5b3b3942
Commit
5b3b3942
authored
Aug 26, 2018
by
Mathias Goebel
Browse files
better xpath to get tei:rs
parent
848eb796
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
modules/fontane/index-api.xqm
View file @
5b3b3942
...
...
@@ -81,9 +81,9 @@ return if(not(exists($page)))
else
(: test for entries before further processing :)
if(not(exists($page/tei:zone//tei:rs))) then () else
if(not(exists(
(
$page/tei:zone//tei:rs
, $page/tei:surface[@not(@n)]//tei:rs)
))) then () else
let $entities := $page/tei:zone//tei:rs/tokenize(@ref, " ") => distinct-values()
let $entities :=
(
$page/tei:zone//tei:rs/tokenize(@ref, " ")
, $page/tei:surface[not(@n)]//tei:rs/tokenize(@ref, " "))
=> distinct-values()
let $groups := $entities ! substring-before(., ":") => distinct-values()
for $group in $groups
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment