Skip to content

Commit

Permalink
fix datatype quantifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
peterstadler committed Jan 8, 2025
1 parent 2d6ceeb commit 36d86ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions add/data/xql/getAnnotationsInText.xql
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ declare function local:findAnnotations($uri as xs:string, $edition as xs:string)
edition:collection($edition)//mei:annot[matches(@plist, $uri)]
};

declare function local:getAnnotations($uriSharp as xs:string, $annotations as element()*) as array(*)* {
declare function local:getAnnotations($uriSharp as xs:string, $annotations as element()*) as array(*) {
array {
for $annotation in $annotations
let $id := $annotation/string(@xml:id)
let $uri := concat('xmldb:exist://', document-uri($annotation/root()), '#', $id)
let $prio := $annotation/mei:ptr[@type = "priority"]/replace(@target, '#', '')
let $cat := $annotation/mei:ptr[@type = "categories"]/replace(@target, '#', '')
let $plist as array(*)* :=
let $plist as array(*) :=
array {
for $p in tokenize($annotation/@plist, '\s+')
return
Expand Down

0 comments on commit 36d86ba

Please sign in to comment.