Upgraded xquery version to 3.0 in scripts