When testing the script during the development against a sample database with BasexGUI this is manually changed into:
(: declare variable $dbName external; :) declare variable $dbName := 'll_i_one';
There may be various solutions for that problem: 1) You can specify a default value in the variable declaration: declare variable $dbName external := 'll_i_one'; 2) You can write a command script (e.g., commands.bxs) and run it with the GUI (works since 7.5): <commands> <set option='bindings'>dbName=123</set> <xquery> declare variable $dbName external; $dbName </xquery> </commands> 3) With versions prior to 7.5, you can first use the command input to set your external variables (using "set dbName=123") and then run the query. Thanks for your feedback, Christian