Subject: Re: [xsl] Infinite Loop when param empty From: david_n_bertoni@xxxxxxxxxx Date: Thu, 22 Jul 2004 12:06:50 -0700 |
> I have a param which is populated with an XML source. > > The paramter is declared like this: > <xsl:param name="ENTRY_TEMPLATE" select="/"/> > > My top level match is: > <xsl:template match="/"> > > Within this template rule I apply the following: > <xsl:apply-templates select="$ENTRY_TEMPLATE"/> > > If the param ENTRY_TEMPLATE is not set, I end up with an infinite loop. Is > this normal behaviour? I'm guessing that maybe it is bad practice to > declare the param as I have. You are instantiating xsl:apply-templates with the root node in a template that matches the root node, which will certainly result in an infinite loop. > Any clues on this? Perhaps you want an empty node-set, if the param is not set? <xsl:param name="ENTRY_TEMPLATE" select="/.."/> Dave
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Infinite Loop when param empt, Karl J. Stubsjoen | Thread | Re: [xsl] Infinite Loop when param , Wendell Piez |
[xsl] Infinite Loop when param empt, Karl J. Stubsjoen | Date | Re: [xsl] Scripting in XSL, J.Pietschmann |
Month |