Skip to content

Commit

Permalink
adjust function signature
Browse files Browse the repository at this point in the history
to allow the empty sequence as return value
  • Loading branch information
peterstadler authored and daniel-jettka committed Jan 15, 2025
1 parent 7d9dbe5 commit e5b8a83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions add/data/xql/getAnnotationPreviews.xql
Original file line number Diff line number Diff line change
Expand Up @@ -318,8 +318,8 @@ declare function local:getZone($elem as element()) as element()? {
(:~
: Returns type of a zone
:)
declare function local:getType($zones as element()*) as xs:string {
$zones[1]/@type (: TODO: besser machen :)
declare function local:getType($zones as element()*) as xs:string? {
$zones[1]/data(@type) (: TODO: besser machen (sagt Daniel) :)
};

declare function local:getBoundingZone($zones as element()*) as element() {
Expand Down

0 comments on commit e5b8a83

Please sign in to comment.