Bug #3329
closedXQuery version declaration is rejected XQST0031
100%
Description
A query with the version declaration
xquery version '3.1'
is rejected unless the Configuration option FeatureKeys.XQUERY_VERSION is set to the value "3.1".
Updated by Michael Kay over 7 years ago
From 9.8, XQuery version 3.1 is the only version of the language supported. The correct behaviour is that we should ignore the version declaration and run as if 3.1 were specified. Because we only now support one version, all the machinery for configuring the XQuery processor version in the Configuration, XQueryCompiler, StaticQueryContext, and QueryModule objects is obsolescent - the relevant interfaces should all be deprecated, and calls ignored.
Updated by Michael Kay over 7 years ago
- Category set to XQuery Java API
- Status changed from In Progress to Resolved
- Fix Committed on Branch 9.8 added
Fixed various interfaces for setting the XQuery language version so that the interface is either deprecated or ignored, perhaps with a warning.
Also removed dead code that implemented the XQuery 1.0 rules for cyclic declarations across module boundaries; these resctrictions disappeared in XQuery 3.0.
Patched for 9.8.
Updated by Michael Kay over 7 years ago
I found there was a test case that expects version "2.0" to be rejected, and although I think this is questionable (see spec bug 20135) I decided to be conservative and reinstate the check that the version must be 1.0, 3.0, or 3.1.
Updated by O'Neil Delpratt over 7 years ago
- % Done changed from 0 to 100
- Fixed in Maintenance Release 9.8.0.3 added
Bug fix applied in the Saxon 9.8.0.3 maintenance release.
Updated by O'Neil Delpratt over 7 years ago
- Status changed from Resolved to Closed
Please register to edit this issue