|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: new feature desired: return variable value
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








