Subject:XSLT - Trapped in Recursive Template Loop Author:Minollo I. Date:01 Dec 2005 05:21 PM
from what you are describing I would expect the match="KIT" template to be executed as many times as many /OFFER/KIT-Children/KIT elements you have in your source document, because you are doing <xsl:apply-templates select="/OFFER/KIT-Children/KIT"/>.
But I wouldn't expect an infinite loop as long as the <xsl:if> logic is properly implemented. Have you verified if the match="KIT" template is being executed every time with the same context note? You can see the context node in the Stylus Studio Variables window.