gender functions in XMLUtilities.xquery