Subject: Template "return value" (was: tail-end recursion) From: "Eliot, Topher" <Christopher_Eliot@xxxxxxxxxxxxx> Date: Thu, 12 Oct 2000 09:30:16 -0600 |
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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: Grouping by name(), and tagging, Lee Goddard | Thread | Variable names *as* variables, John E. Simpson |
Re: Copying and Transforming/Recurs, David Carlisle | Date | Re: XSLT plugin into Netscape 4.0, Steve Muench |
Month |