Project

Profile

Help

Support #1629

closed

Strange recursive behaviour in stylesheet

Added by O'Neil Delpratt about 12 years ago. Updated about 12 years ago.

Status:
Rejected
Priority:
Normal
Category:
Internals
Sprint/Milestone:
-
Start date:
2012-09-18
Due date:
% Done:

0%

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

Description

Reported by Jesper Tverskov:

This error can be reproduced with the attached stylesheet.

  1. If the row count, "rcount", is lower than 9, the recursion works.

If it is 9 the number of rows returned explodes. If it is higher than

9 no rows are returned.

  1. It is easy to fix the templates, I can do one of two:

If I change:

xsl:with-param

<xsl:value-of select="$i + 1"/>

</xsl:with-param>

to:

<xsl:with-param select="$i + 1"/>

Everything is ok.

It is also ok if I change it to:

<xsl:with-param as="xs:integer">

<xsl:value-of select="$i + 1"/>

</xsl:with-param>


Files

stylesheet.xsl (1.93 KB) stylesheet.xsl O'Neil Delpratt, 2012-09-18 09:30

Please register to edit this issue

Also available in: Atom PDF