Project

Profile

Help

Bug #6165

closed

Spurious template rule ambiguity reported

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

Status:
Closed
Priority:
Low
Assignee:
Category:
XSLT conformance
Sprint/Milestone:
-
Start date:
2023-08-10
Due date:
% Done:

100%

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

Description

This is happening when running the Java-to-C# transpiler.

There is an element <name nodeType="NameExpr">, and there are two template rules with match patterns:

match="name | *[@nodeType='Name']
match="*[@nodeType='NameExpr']

An ambiguous match is reported in Saxon 12; none was reported in Saxon 11. I don't think this is ambiguous. The union pattern should be treated as two separate template rules with different (defaulted) priority and the second one should win unambiguously.

Please register to edit this issue

Also available in: Atom PDF