[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: libxslt 10124 detects a potential infinite templat

Subject: Re: libxslt 10124 detects a potential infinite template recursion whereas there is not a potential infinite template recursion
From: spam.spam.spam.spam@xxxxxxx
Date: Sat, 19 Feb 2011 20:09:58 +0100 (CET)
Re:  libxslt 10124 detects a potential infinite templat
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@xxxxxxxxx>
C: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
EnvoyC): Samedi 19 FC)vrier 2011 17h33:43 GMT +01:00 Amsterdam / Berlin /
Berne / Rome / Stockholm / Vienne
Objet: Re:  libxslt 10124 detects a potential infinite template recursion
whereas there is not a potential infinite template recursion

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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.