https://www.w3.org/TR/xquery-31/#id-function-conversion-ruleshttps://www.w3.org/TR/xquery-31/#promotion
Me too, because the following query works on my environment: declare variable $local:uri1 as xs:anyURI := xs:anyURI("http://example.com/batz/mongo/blah/index.html"); $local:uri1