Philip Nye wrote: > It would be very useful if an element template in a configuration could > specify a command to be triggered whenever that template is invoked. > > For example, I have elements which have an attribute containing their > creation date. I also have a macro which calls an external shell command > to generate the current date in the required format and places the > result in the attribute. It would be nice to have the macro triggered > automatically whenever a new element is created using the template. > > I note that the current wish list on line has invocation of commands on > open and save, but not on template invocation.
We agree that this would be a useful addition. In the case of element templates, our idea is to support *dynamic* element templates rather than invoke commands before and after inserting an element. Dynamic element templates = a mix of xml and script (? la PHP). Dynamic document templates would be useful too. I'll add this feature request to the User's Wish List (http://www.xmlmind.com/xmleditor/wish_list.html).

