xsl-list
[Top] [All Lists]

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

2011-02-19 13:10:15
Ok, so that was just a bug in my stylesheet.
Now, I will declare the parameter in my templates.
It works fine, thank you.

----- Mail Original -----
De: "David Carlisle" <davidc(_at_)nag(_dot_)co(_dot_)uk>
À: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Envoyé: Samedi 19 Février 2011 17h33:43 GMT +01:00 Amsterdam / Berlin / Berne / 
Rome / Stockholm / Vienne
Objet: Re: [xsl] libxslt 10124 detects a potential infinite template recursion 
whereas there is not a potential infinite template recursion

On 19/02/2011 16:06, spam(_dot_)spam(_dot_)spam(_dot_)spam(_at_)free(_dot_)fr 
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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>