By default a function's scope is global. You can use the "scope" attribute to specify the function's scope:
<function name="function2" scope="local"> See the STAX User's Guide for more information: http://staf.sourceforge.net/current/STAX/staxug.html#Header_Function Thanks, David David Bender 11501 Burnet Rd. Phone (T/L): 1-512-286-5315 STAF/STAX Development Bldg. 903-5B002 (363-5315) Austin, TX ITN: 23635315 IBM Software Group, 78758-3400 Email: bda...@us.ibm.com WPLC From: anas ameziane <anas...@hotmail.fr> To: staf-users@lists.sourceforge.net Date: 08/03/2010 03:51 AM Subject: [staf-users] STAX : local scope Hi, Consider the following example: <sequence> <script> location = "host1.toto.fr" </script> <call function="function1"> { 'location':location } </call> <call function="function2"> { 'location':”local” } </call> <call function="function3"> { 'location':location } </call> </sequence> Why the variable location at the fonction3 is set to « local ». STAX knows the difference between a variable and a function argument? STAX can use a local variable? Thanks, Anas AMEZIANE. ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ staf-users mailing list staf-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/staf-users
<<inline: graycol.gif>>
<<inline: ecblank.gif>>
------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm
_______________________________________________ staf-users mailing list staf-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/staf-users