private void bindParams(Map<String, Parameter> params, XQDynamicContext xqe) throws XQException { for (Map.Entry<String, Parameter> e: params.entrySet()) { Parameter param = e.getValue(); //if ("properties".equals(param.getType())) { // create and bind sequence with properties // Properties props; // try { // props = propsFromString(param.getName()); // } catch (IOException ex) { // logger.warn("bindParams.error; " + ex, ex); // continue; // } //XQItemType type = getConnection().createAtomicType(baseType, typeName, null); //XQSequence seq = getConnection().createSequence((java.util.Iterator) null); //xqe.bindSequence(new QName(e.getKey()), seq); // XQSequenceType type = getConnection().createSequenceType(getConnection().createItemType(), XQSequenceType.OCC_ZERO_OR_MORE); //getConnection().createSequenceType( // getConnection().createAtomicType(XQItemType.XQBASETYPE_STRING), XQSequenceType.OCC_ZERO_OR_MORE), XQSequenceType.OCC_ZERO_OR_MORE); //xqe.bindObject(new QName(e.getKey()), props, type); //} else { QName typeName = new QName(xs_ns, param.getType(), xs_prefix); int baseType = getBaseTypeForTypeName(typeName); XQItemType type = getConnection().createAtomicType(baseType, typeName, null); //xqe.bindAtomicValue(new QName(e.getKey()), param.getName(), type); xqe.bindObject(new QName(e.getKey()), getAtomicValue(baseType, param.getName()), type); //} } }