I am completely new to BaseX, and trying to conceive of a way to use it to process a compound query that combines an external query with a static one.
The core idea is a very simple application, expressed as an XQuery file, that results in the following sequence of actions:
1. Extraction of data from a database, by some query. 2. Modification of the results of (1), by some query. 3. Persistence of the results from (2), back into the database from which the data was originally extracted.
The modifications given in (2) would be expressed external to the application, supplied as input per invocation, in a separate file or in a command-line parameter.
Thus, the overall operation would entail static components, the fixed parts of the application, represented by (1) and (3), and dynamic components, passed by the invocation, represented by (2).
I realize such a processing pipeline may be achieved through queries supplied in a full application accessing the database by one of the language-specific APIs, but I am trying to consider an approach that requires use only of XQuery statements, without involving a separate programming language or formal build process.
Does the design of BaseX accommodate an application having the structure as described?