Error on line 45 column 11 of badframework.xqy: XQTY0105 Cannot add a map to an XDM node tree Focus: absent Local variables $externals = map{"ALGORITHM-PARAMETERS":map{},"CONTENT-FUNCTION":this:content} invoked by function call at file:/home/mary/SVG/BUGREPORTS/20220809/badframework.xqy#53 Focus: absent Local variables $externals = map{"ALGORITHM-PARAMETERS":map{},"CONTENT-FUNCTION":this:content} invoked by unknown caller (class net.sf.saxon.value.MemoClosure) Focus: absent Local variables $externals = map{"ALGORITHM-PARAMETERS":map{},"CONTENT-FUNCTION":this:content} invoked by function call at file:/home/mary/SVG/BUGREPORTS/20220809/fail.xqy#21 Query failed with dynamic error: Cannot add a map to an XDM node tree