Macro language

Are you missing a feature? Request its implementation here.
pb
Posts: 12
Joined: Wed Jun 15, 2005 5:43 pm
Contact:

Macro language

Post by pb »

Hi,

Do you have plans for adding a macro facility (in the sense of a true macro language, such as vba in Word or beanshell macro's in jEdit)? I know about code templates, but I need programming capabilities (without being a java programmer myself, so the plugins are beyond me).

Possible use case: user creates <l> elements for each line of poetry, a macro adds xml:id attributes (and n-attributes for the line numbers) to the lines in the current selection.

Come to think of it: an alternative could be to have the output of a transformation scenario replace the contents of the current file. I could then use XSLT as a (sort of) macro language.

Peter
Mircea
Posts: 144
Joined: Tue Mar 25, 2003 11:21 am

Post by Mircea »

Hi Peter,

We'll consider adding a macro language in Oxygen but I don't think it has any chances to be done in the near future.

About the alternative, of course you can make a scenario in which the output file is exactly the one of the XML input. In this way, the transformation output will overwrite the source XML file.
After the transformation you will be asked to reload the opened editor from the disk. (if this does not happen you can try changing the focus away from the editor for example by clicking in the project tree and then clicking back into the editor so that Oxygen realises the file's timestamp was modified on disk).


Regards, Mircea.
Mircea Enachescu
<oXygen> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Post Reply