I am using Oxygen XML Editor 17.0 (Saxon XQuery 184.108.40.206). Recently I have created a very basic XQuery code to perform some statistic measurements over the XML files on Web Dav server. Let's say I just want to count the number of .xml files in one directory. I added the XQuery file to the location where .xml files are. Here is the code:
Code: Select all
xquery version "3.0" encoding "utf-8";
let $docs := collection('./?select=*.xml')
I receive an error message: "FODC0004: Collection catalog should not use a namespace"
The code works fine when run locally. I am also able to search over one particular file (on server) using absolute path, but I want to have a universal code.
I am guessing it is connected with some restrictions on Web Dav server, but I am a newbie in this area. Could you please advice?