added ability to bind external vars in XQueryInterface