When you <import> a STAX XML file, the file is not executed at that time. If you want the variables defined in the <script> to be executed, you need to have the <script> within a <function> in ParamsTest.xml, and then <call> that function after imporrting ParamsTest.xml (so that the <script> is executed), and then call function Primary passing it the machine/file parms. Thanks, David
David Bender STAF/STAX Development IBM Software Group, WPLC 11501 Burnet Rd. Bldg. 903-5B002 Austin, TX 78758-3400 Phone (T/L): 1-512-286-5315 (363-5315) ITN: 23635315 Email: bda...@us.ibm.com arul prakash <arulprakas...@gmail.com> 12/29/2009 12:10 AM To staf-users@lists.sourceforge.net cc Subject [staf-users] Parameter passing Hi, Im trying to call a function by importing it from another file and the parameters for the functions are passed got from another file.But STAX can't parse the values of the parameters.But I can achieve this when I tried it from the script tab in STAX job monitor. <stax> <defaultcall function="main"/> <function name="main"> <sequence> <import file=" 'C:\ParamsTest.xml' "/> -------------------->xml file having the values of the parameter <import file=" 'C:\AppSetup.xml' "/> --------------------->xml file containing the function to be called <call function="'Primary'">machine,file</call> </sequence> </function> </stax> -------ParamsTest.xml <stax> <script> machine='10.31.248.233' file='c:\sample.pl' </script> </stax> -- Regards, Arul ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ staf-users mailing list staf-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/staf-users
------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________ staf-users mailing list staf-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/staf-users