Project

Profile

Help

Bug #1688

Incorrect optimization of saxon:stream()

Added by Michael Kay over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Streaming
Sprint/Milestone:
-
Start date:
2013-01-17
Due date:
% Done:

100%

Legacy ID:
Applies to branch:
Fix Committed on Branch:
Fixed in Maintenance Release:
Found in version:
9.4
Fixed in version:
9.4.0.7

Description

During optimization of a stylesheet, an incorrect rewrite may be applied to the "StreamingCopy" instruction, which is normally used as the compiled representation of a call on saxon:stream() (but may also represent an <xsl:copy-of saxon:read-once> instruction). The effect is to replace the "filter" part of the expression with a copy of the call on the doc instruction. So, for example, the expression saxon:stream(doc('a.xml')//elements) is rewritten as saxon:stream(doc('a.xml')//elements[doc('a.xml')]. In this example the predicate is always true, so it does not affect the results, but it does inhibit streaming.

History

#1 Updated by O'Neil Delpratt over 3 years ago

  • Status changed from Resolved to Closed
  • % Done changed from 0 to 100
  • Fixed in version set to 9.4.0.7

Bug closed. Fixed in Saxon maintenance release 9.4.0.7

Also available in: Atom PDF