[MOD] XQuery, QT3TS: limit check added