Project

Profile

Help

Bug #6663

open

Ambiguous template match reported for a single template

Added by Ken Holman about 17 hours ago. Updated about 16 hours ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
2025-01-21
Due date:
% Done:

0%

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

Description

Hi, folks!

I will take the time to try and distill a test file for this from a very large code base, unless I am the bug in my understanding and you tell me just to fix my code.

My understanding is that a single template rule with a union of multiple match conditions cannot, within itself, be considered ambiguous. There is only one template rule involved and being matched, so what's ambiguous about that?

Yet....

XSLT ERROR: XTDE0540
Ambiguous rule match for /adoption
Matches both "adoption[("", "national") = fn:string(...) or fn:not(...)]" on line 111 of file:/Users/admin/u/git/render/render/GuestDoubleSided/GuestDoubleSided-page.xsl
and "adoption[("GUESTDOUBLESIDED", "GUEST") = c:metaOriginator(...)]" on line 111 of file:/Users/admin/u/git/render/render/GuestDoubleSided/GuestDoubleSided-page.xsl
null:0

Is this my problem or yours, please?

~/u/git/render/render $ java -jar jar/saxonpe/saxonpe.jar /?
No stylesheet file name
SaxonJ-PE 12.4 from Saxonica

If mine, I thank you for your patience with me and my getting old!

. . . . . Ken

Please register to edit this issue

Also available in: Atom PDF