Project

Profile

Help

Bug #6160

closed

Key type in a MapTest cannot be a union type

Added by Michael Kay 9 months ago. Updated 5 months 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 9 months 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 9 months 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 8 months 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 5 months 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