[xep-support] "Filtered" Select and alternating background-color

Powell, Todd Todd.Powell at hq.doe.gov
Thu May 25 08:41:04 PDT 2006

Hi David,

> tail recursion is optimized into a loop by many XSLT implementations,
> SAXON and XT; thus the stack does not grow and iterative alogithms are
> good when represented using recursion as if looping constructs were

"tail recursion"?  Is this a particular type of recursive call in XSLT,
different from other types?

If I have the following, what's happening on the stack to prevent
stack-space issues?

<xsl:template match="ROOT">
	<xsl:apply-templates select="foo[1]"/>

<xsl:template match="foo">
	<p>Before recursive call...<xsl:value-of

	<xsl:apply-templates select="following-sibling::foo"/>

	<p>After recursive call...<xsl:value-of

Doesn't the parser need to keep track of all the matches for <foo>, so
it can spit out the "After..." stuff?  If I have 300,000 <foo> elements
to process, is there an issue?

- Todd

(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo at renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/terms-of-service.html

More information about the Xep-support mailing list