Hi Daniel,
You can include .xsl files via the CREATEFILTER option [1]:
java -jar BaseX.jar -u -c"set createfilter *.x,*.xsl" -ilocalpath update.xquery
Hope this helps, Christian
[1] https://docs.basex.org/main/Options#createfilter
On Fri, Jun 28, 2024 at 3:36 PM Zimmel, Daniel D.Zimmel@esvmedien.de wrote:
Hi,
is the following behaviour a bug or does it need better documentation?
When in a directory of XML files one file extension is not .xml but .xsl then with java -cp BaseX.jar org.basex.BaseX -u -w -i"localpath/" update.xquery only .xml-files get updates (not .xsl)
Only with java -cp BaseX.jar org.basex.BaseX -u -w -i"localpath/file.xsl" update.xquery the .xsl-file does get an update.
BaseX 11.0
The documentation only says: " Opens the specified XML file, directory with XML files, or database", but not anything about file extensions. https://docs.basex.org/main/Command-Line_Options
Thanks, Daniel