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

Reply via email to