Yes, the <import> element supports a replace attirbute that specifies what to do if a function already exists. If it evaluates to a "false" value (e.g. 0), then functions that already exist will not be replaced. This is the default. If it evaluates to a "true" value (e.g. 1), then functions that already exist will be replaced. For example:
<import machine="'server1.company.com'" file="'c:/stax/utils/library.xml'" replace="1"/> This is documented in the STAX User's Guide at http://staf.sourceforge.net/current/STAX/staxug.html#Header_Import. Note that the replace attribute was added to the <import> element in STAX V3.3.8 so you must be running this version or later to use this feature (as documented in the History of changes for STAX at http://staf.sourceforge.net/staxhistory.php. Note that the current version of STAX is 3.4.2. -------------------------------------------------------------- Sharon Lucas IBM Austin, luc...@us.ibm.com (512) 286-7313 or Tieline 363-7313 "Mayad AL-Saidi" <mayad.al-sa...@cmgl.ca> 05/26/2010 11:44 AM To <staf-users@lists.sourceforge.net> cc Subject [staf-users] STAX function name collision Hi all, I've noticed that when I import 2 STAX functions with the same function name, the one that was imported first will not be replaced by the second one. Is there a way to change this so that the latest imported function would replace older ones? Thanks, Mayad ------------------------------------------------------------------------------ _______________________________________________ staf-users mailing list staf-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/staf-users
------------------------------------------------------------------------------
_______________________________________________ staf-users mailing list staf-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/staf-users