Project

Profile

Help

Bug #3329

closed

XQuery version declaration is rejected XQST0031

Added by Michael Kay over 7 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
XQuery Java API
Sprint/Milestone:
-
Start date:
2017-07-03
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
9.8
Fix Committed on Branch:
9.8
Fixed in Maintenance Release:
Platforms:

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".

Actions #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.

Actions #2

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.

Actions #3

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.

Actions #4

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.

Actions #5

Updated by O'Neil Delpratt over 7 years ago

  • Status changed from Resolved to Closed

Please register to edit this issue

Also available in: Atom PDF