[mod] symbol opts

This commit is contained in:
Andy Bunce 2025-10-27 23:02:21 +00:00
parent b102be8db6
commit c4d2770bae
3 changed files with 24 additions and 8 deletions

10
test/ast.xq Normal file
View file

@ -0,0 +1,10 @@
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
}