Project

Profile

Help

Bug #1899

closed

Parameter not evaluated when the only usage is in a predicate of a pattern

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

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

100%

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

Description

A stylesheet function has a parameter $level, and the only usage of this parameter is in the predicate of a group-starting-with pattern within the function. The optimizer decides that there are no references to the parameter, therefore the parameter is not evaluated. This could cause a crash, but in this instance it leads to the pattern being evaluated as false, causing all items in the population to form a single group.

Reported (with repro) by G Imsieke on saxon-help list.

Please register to edit this issue

Also available in: Atom PDF