Command line "-i" directory does not update files when file extension not "xml"

Friday, 28 June 2024 · 3 messages · last reply 2 Jul 2024
ZD
Zimmel, Daniel28 Jun 2024 15:36 #
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
CG
Christian Grün1 Jul 2024 10:34 #
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
Quoted text · Daniel · 28 lines
On Fri, Jun 28, 2024 at 3:36 PM Zimmel, Daniel <D.Zimmel at 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 > > >
ZD
Zimmel, Daniel2 Jul 2024 17:41 #
Thank you for the clarification and the example – I wasn’t aware of this option.
Quoted text · Christian Grün · 26 lines
Von: Christian Grün <christian.gruen at gmail.com> Gesendet: Montag, 1. Juli 2024 10:34 An: Zimmel, Daniel <D.Zimmel at ESVmedien.de> Cc: basex-talk at mailman.uni-konstanz.de Betreff: Re: [basex-talk] Command line "-i" directory does not update files when file extension not "xml" 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 at esvmedien.de<mailto:D.Zimmel at 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

⚡Generated with XQuery