Skip to content

Commit

Permalink
[bugfix] call to templating:apply expects a function(xs:string, xs:in…
Browse files Browse the repository at this point in the history
…teger)
  • Loading branch information
adamretter committed Sep 13, 2023
1 parent 893df0a commit d911cd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/xar-resources/modules/view.xql
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ let $config := map {
: module cannot see the application modules, but the inline function
: below does see them.
:)
let $lookup := function($functionName as xs:string, $arity as xs:int) {
let $lookup := function($functionName as xs:string, $arity as xs:integer) {
try {
function-lookup(xs:QName($functionName), $arity)
} catch * {
Expand All @@ -40,4 +40,4 @@ let $lookup := function($functionName as xs:string, $arity as xs:int) {
:)
let $content := request:get-data()
return
templates:apply($content, $lookup, (), $config)
templates:apply($content, $lookup, (), $config)

0 comments on commit d911cd9

Please sign in to comment.