Hi Michael,
thanks for the information. I changed let $tokens := doc("tokens.xml")//entry to let $tokens := fetch:xml("tokens.xml")//entry (tokens.xml is in the same directory as the xq-file.)
The problem is still the same: [bxerr:BXFE0001] Resource "/Users/User/tokens.xml (No such file or directory)" not found.
The path should be: /Users/User/Documents/project/BaseXWeb/tokens.xml
Same problems with RESTPATH empty or path to project-folder.
As I wrote, I have only problems with the REST-Service, not with RESTXQ.
Best, Guenter