import module namespace pos="lsp/position" at "../webapp/lsp/position.xqm"; let $text:="1+2 a" return pos:toPosition($text,5)