Project

Profile

Help

Bug #6160

closed

Key type in a MapTest cannot be a union type

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

Please register to edit this issue

Also available in: Atom PDF