Hi I am using the STAX XML for my project. I am using script tag to run my python script. In the script itselef I have declared some variable which I am using in the loop. But I am getting error in the loop. I am not able to access the script variable. Below refer below for the problem statement
Below code is in my STAX xml. <script> Python code here. I have a variable declared as List. List = len(records) I have verified the List variable by running the python script and I am getting its value. </script> Now when I use this variable in the loop below i am not getting the value to my variable of the script tag. Below is my loop <script>i=1</script> <log message="1">"Lists"</log> <loop from ="i" to = "Lists" > <if expr ="d[i][0][4]='Sequence'"> <call function="'SequentialDriverFunction'"/> <elseif expr ="d[i][0][4]='Parallel'"> <call function="'ParallelDriverFunction'"/> </elseif> </if> </loop> Here I am getting error as "Error in attribute "to" associated with element type "loop"." For this I have checked the List variable from the log message and I found that I am not getting the value of variable(which is defined in the above script tag) Can you please tell me how can I access the value of the variable from the script tag? Thank you Regards, Sandeep ------------------------------------------------------------------------------ Get 100% visibility into Java/.NET code with AppDynamics Lite! It's a free troubleshooting tool designed for production. Get down to code-level detail for bottlenecks, with <2% overhead. Download for free and get started troubleshooting in minutes. http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk _______________________________________________ staf-users mailing list staf-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/staf-users