Skip to content
Snippets Groups Projects
Verified Commit a068e65a authored by Peter Stadler's avatar Peter Stadler
Browse files

create proper array of objects

parent a8a5c8f9
No related branches found
No related tags found
No related merge requests found
......@@ -49,13 +49,12 @@ declare function local:getAnnotations($uriSharp as xs:string, $annotations as el
let $plist as array(*) :=
array {
for $p in tokenize($annotation/@plist, '\s+')
where starts-with($p, $uriSharp)
return
if (starts-with($p, $uriSharp)) then
(concat('{id:"', $id, '__', substring-after($p, $uriSharp), '"}'))
else
()
map {
'id': concat( $id, '__', substring-after($p, $uriSharp))
}
}
let $plist := string-join($plist, ',')
return
map {
'id': $id,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment