xquery version "3.1"; import module namespace framework="http://mathling.com/art/framework" at "badframework.xqy"; declare namespace this="http://www.w3.org/2005/xquery-local-functions"; declare namespace map="http://www.w3.org/2005/xpath-functions/map"; declare variable $ALGORITHM-PARAMETERS as map(xs:string, item()*)? external := map {}; declare function this:content( $parameters as map(xs:string, item()*) ) { $parameters }; framework:execute( map { "ALGORITHM-PARAMETERS": $ALGORITHM-PARAMETERS, "CONTENT-FUNCTION": this:content#1 } )