Binding multiple items to 1 variable (server protocol)
Thursday, 27 April 2023 · 1 message
BE
Ben Engbers27 Apr 2023 17:45 #
Hi,
My ultimate goal is to investigate, using a SWI-Prolog client and Basex, whether a combined use of Prolog and XQuery offers advantages. To write a Prolog client, I first had to learn C++ and the spin-off from that is that I am now almost done writing a C++ client.
As with writing the R client at the time, I have questions when applying the 'Bind' command.
The server protocol contains the following sentence:
"the two items xs:integer(123) and xs:string('ABC') are encoded as 123, \02, xs:integer, \01, ABC, \02, xs:string and \00"
Does this mean that multiple items of different types can be bound to one (1) {name} variable?
If so, in what situation could this be applied? Where can I find an example FLWOR query that uses this?
Ben Engbers
Written for BaseX 10.5. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery