Yes, STAX provides the following python variables:

STAXJobXMLFile 
Description: the fully qualified name of the file containing the XML 
document; this is the value of the FILE parameter, if specified, on the 
EXECUTE request; otherwise, if DATA <xml data> was specified on the 
EXECUTE request instead of FILE, it is set to "<inline data>"
Assigned: at the beginning of the execution of a STAX job
Type: string

If you import STAX functions from other STAX XML files (e.g. via the 
<function-import> or <import> elements), then you may want to reference 
the following variable instead.

STAXCurrentXMLFile 
Description: the name of the xml file that contains the STAX function 
that's currently running in a thread. If the current STAX function was not 
provided via a file by instead via the DATA option on an EXECUTE request, 
it is set to "<inline data>".
Assigned: at the beginning of the execution of a STAX job and each time a 
STAX function is called (e.g. upon encountering a <call name="..."> 
element.
Type: string

For more information, see section "STAX Variables" in the STAX User's 
Guide at 
http://staf.sourceforge.net/current/STAX/staxug.html#Header_StaxVariables. 


--------------------------------------------------------------
Sharon Lucas
IBM Austin,   luc...@us.ibm.com
(512) 286-7313 or Tieline 363-7313




From:   Luca Robusto <lucarobu...@gmail.com>
To:     "staf-users@lists.sourceforge.net" 
<staf-users@lists.sourceforge.net>, 
Date:   11/20/2013 08:48 AM
Subject:        [staf-users] get actual filename



Hi all,
is there a way to get the actual xml filename during a stax script 
execution?

It would be good a python way or a STAX VAR.

Thanks.

Luca.
------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up 
now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to