Adding initial pass at translating xsdvi java code to an XQuery function module