This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Template "return value" (was: tail-end recursion)


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]