basex

BaseX GUI Command Bar Error Unknown Command


I occassionally use BaseX GUI for examining XML files and trying XSL transforms. I don't know what has happened but I can no longer run one-liners in the Command/Find/XQuery bar that sits below the toolbar. I always get "Error unknown command try help". The drop down has recently used commands none of which work any longer.enter image description here

I have tried upgrading BaseX from 9.3 to 9.7 and upgrading java. I'm running windows 10. My searching didn't yield any results, I hoping someone can help because I'm out of ideas. Thanks.


Solution

  • The entries shown in your inputbar image are XQuery expressions, with the exception of help which is a command. So changing the mode dropdown from Command to XQuery will enable them to run.

    Note: modes XQuery and Find require an open database.

    It looks like your XQuery expressions are not database specific so as an alternative you could leave the mode as Command and prefix your text with the command 'XQUERY ' eg XQUERY 1+3 etc