Oracle Message ORA-19122 - unsupported XQuery declaration

ERRORunsupported XQuery declaration
CAUSEThe program specified an XQuery declaration that is not supported.
ACTIONRewrite the XQuery with a declaration that is supported.