Hi there,
In my application I have this method:
public static String getAllPartsAsTree(String a) throws XQException, XQQueryException
{
XQConnection con = Connection.getConnection();
XQExpression xqe = con.createExpression();
xqe.bindString(new QName("b"), a, null);
String xqueryString =
"import module namespace lib=\"http://www.example.com/library_module\";" +
"declare option output:method \"xhtml\";" +
"declare variable $b external; " +
"lib:gethtml($b)";
XQResultSequence rs = xqe.executeQuery(xqueryString)