import module namespace syms="lsp/symbols" at "../webapp/lsp/ast/ast.xqm"; declare $file:="C:\Users\mrwhe\git\quodatum\basex-lsp\test\sample.docs\pdfbox.xqm"; declare variable $A:=doc("C:\Users\mrwhe\git\quodatum\basex-lsp\test\sample.docs\parse-pdfbox.xml"); $A update{ for $e in .//element() let $len:=string-length($e) return insert node attribute len { $len } into $e }