Hi, I would like to enable my users to perform a series of automated string substitutions, by providing them with a macro that they will have to run.
The substitution table is to be kept in a kind of configuration file (preferably XML) so that it may be easily modified. I think I should use the document() function together with the <get> macro function to slurp it into my macro, inspired a bit by this example: http://www.xmlmind.com/xmleditor/_distrib/doc/commands/macro_examples.html#insertFromOtherDoc_example Now I am only wondering which would be the best way to process the substitution table: a) Write a recursive macro that calls replaceText for each remaining substitution b) Transform the whole document and repeatedly apply the XPath replace() function to each text node Which is your advice? (Performance aspects don't come in for much in this case.) Yves -- XMLmind XML Editor Support List [email protected] http://www.xmlmind.com/mailman/listinfo/xmleditor-support

