Re: new feature desired: return variable value

Subject: Re: new feature desired: return variable value
From: Paul Levin <plevin@xxxxxxx>
Date: Tue, 07 Dec 1999 12:52:40 -0500
David,
    Thank you.  I had always been setting the value of a variable with a
select statement.  Setting the variable with the output of the called
template works great.

    My thanks to all the other people who also posted this approach.

    Paul

David Carlisle wrote:

> > There is a new feature I would like to see in XSLT --
>
> You mentioned two features.
>
> >     I would like to see the ability for a named template to either
> > return a value (which could be assigned to a variable in the calling
> > template)
>
> This you can do now:
>
> <xsl:variable name="x">
>  <xsl:call-template ....
> </xsl:variable>
>
> >  or for a template to be able to set/change the value of a
> > global variable.
>
> This seems such an unnatural thing to want (even though saxon:assign
> gives it to you). Surely it is perfectly natural for the value of a
> function f(x,y) to depend only on the values of x and y, and not on
> whether you happened to have called previously some other function to
> change some global state.
>
> David
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread