This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Template "return value" (was: tail-end recursion)
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: Template "return value" (was: tail-end recursion)
- From: "Eliot, Topher" <Christopher_Eliot at jdedwards dot com>
- Date: Thu, 12 Oct 2000 09:30:16 -0600
- Reply-To: xsl-list at mulberrytech dot com
A minor point: templates (invoked by call-template) can return a
value, sort of. For example, I use:
<xsl:attribute name="descriptionString"><xsl:call-template
name="CreateProcessDescString" /></xsl:attribute>
The CreateProcessDescString named template "outputs" the various pieces of
the string; the don't really go to the output tree, but instead are
"returned" from the template call and become the value of the
descriptionString attribute.
> imho optimizing tail-end recursion is _very_ significant,
> given that variables are "final" and there is no "return value"
> from templates.
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list