Xquery tool to static