So...you mean that "declare db:skipcorrupt ... " is not a valid syntax anymore?
The syntax "declare option ..." is still valid, but many options don't apply to functions anymore. As it's not clearly documented what options are interpreted by XQuery functions, it may be that we will completely remove global BaseX options in future, or at least restrict them to a well-defined subset.
Il giorno 14/set/2015, alle ore 15:44, Christian Grün christian.gruen@gmail.com ha scritto:
I forgot to give feedback to your last comment:
Moreover, if I create a database from the GUI and select the option "skip corrupt", the database is created. However if I follow instruction here http://docs.basex.org/wiki/Parsers In order to add single files to a db usind db:add and precede the query with declare option db:skipcorrupt 'true', the files are not added because I get an error message due to the not well-formed xml. I have tried to declare other db options in the same way but they seem not be read.
Thanks for pointing this out. The examples in the Wiki were outdated; I have just updated them. The way to do it now is to specify the options as function arguments.
Christian