Re: [staf-users] HOW to run python code in STAX XML Program

2011-03-18 Thread Sharon Lucas
You should post the error message provided not just the return code. I'm guessing you received a STAXPythonEvaluationError, because Python code blocks are defined by their indentation. By "code block", I mean functions, if statements, for loops, while loops, and so forth. Indenting starts a bl

Re: [staf-users] HOW to run python code in STAX XML Program

2011-03-18 Thread David Bender
Hi, First, you need to understand that STAX uses Jython 2.1, which is equivalent to Python 2.1. The Python documentation for subprocess (http://docs.python.org/library/subprocess.html#subprocess-replacements) indicates that it was added in Python 2.4, so it is not available with Jython 2.1. Fur