clean xquery features.