Project

Profile

Help

Bug #5097

closed

Tracing with -T produces wrong output for xsl:on-empty instructions

Added by Michael Kay over 2 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
XSLT conformance
Sprint/Milestone:
-
Start date:
2021-09-17
Due date:
% Done:

100%

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

Description

The xsl:on-empty instruction "fires" when the containing instruction (a sequence constructor) produces an empty result. Injecting a trace instruction between xsl:on-empty and its parent instruction changes this relationship: it makes xsl:on-empty the only operand of its parent instruction, which means it always fires.

Please register to edit this issue

Also available in: Atom PDF