Re: [xsl] libxslt 10124 detects a potential infinite template recursion whereas there is not a potential infinite template recursion

Subject: Re: [xsl] libxslt 10124 detects a potential infinite template recursion whereas there is not a potential infinite template recursion
From: David Carlisle <davidc@xxxxxxxxx>
Date: Sat, 19 Feb 2011 16:33:43 +0000
On 19/02/2011 16:06, spam.spam.spam.spam@xxxxxxx wrote:


>
> So the old libxslt version (10117) works better than the new libxslt version (10124) because it detects a potential infinite template recursion only when there is really a potential infinite template recursion.
>
> Can you correct this?


This list is for xsl programming questions not really for reporting bugs in xsl engines.

However in this case it appears to be a bug in your stylesheet, your template myrecursivetemplate has no param declared, so it would loop forever as the different values passed in will (in xslt 1) be ignored.
In xslt 2 it is an error to pass a parameter to atdemplate that does not declare the parameter, so this would be reported earlier.



> <xsl:template name="myrecursivetemplate"> missing xsl:param here > <xsl:choose>


David


Current Thread