xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

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
Keywords
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor