Steffen Goeldner wrote:
DBD::monetdb restricts the language parameter:
die "!ERROR languages permitted are 'sql', 'mal', and 'mil'\n" unless ($lang eq 'mal' || $lang eq 'sql' || $lang eq 'mil');
Drop these lines if they get in the way. There are a few conditionals in the code (to switch behavior between 'sql' and 'mil'). Maybe you need additional conditionals for 'xquery'. Thenceforward you have to fight for yourself. (Last time I battled with hierarchical databases in 1969;-) Of course, I'll help to incorporate necessary changes into the module.
Steffen, is it of any use to you to know that XML:DB (a Java based XML kind of JDBC driver) is based on JDBC, and that for that I had to make MonetDB/XQuery able to talk with the JDBC driver? I made this JDBC/XQuery 'marriage' by letting the XQuery server produce SQL-ish results including all of its headers that are required. As such for each XQuery query a single ResultSet is returned with one column (varchar of course) holding the XQuery output. The number of rows is equal to the number of Resources in the XQuery Result. Let me know if you need additional information.