set of xquery functions