Project

Profile

Help

Bug #6160

closed

Key type in a MapTest cannot be a union type

Added by Michael Kay over 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
XPath conformance
Sprint/Milestone:
-
Start date:
2023-08-08
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
11, 12, trunk
Fix Committed on Branch:
11, 12, trunk
Fixed in Maintenance Release:
Platforms:
.NET, Java

Description

In XPath 3.1 the rules for a MapTest (syntax map(K, V)) allow K to be either an atomic type or a pure union type. Saxon is allowing only atomic types. For example, it rejects xs:numeric, as well as schema-defined union types.

I have added tests to the qt4 prod-MapTest test set to demonstrate the problem (which isn't specific to 4.0 extensions).

Actions #1

Updated by Michael Kay over 1 year ago

Now patched on the 11.x branch. Need to port the patch when the 12.x branch is stabilised.

Actions #2

Updated by Michael Kay over 1 year ago

  • Category set to XPath conformance
  • Status changed from New to Resolved
  • Fix Committed on Branch 11, 12, trunk added
  • Platforms .NET, Java added
Actions #3

Updated by Debbie Lockett over 1 year ago

  • % Done changed from 0 to 50
  • Fixed in Maintenance Release 11.6 added

Bug fix applied in the Saxon 11.6 maintenance release.

Actions #4

Updated by O'Neil Delpratt about 1 year ago

  • Status changed from Resolved to Closed
  • % Done changed from 50 to 100
  • Fixed in Maintenance Release 12.4 added

Bug fix applied in the Saxon 12.4 Maintenance release

Please register to edit this issue

Also available in: Atom PDF