Macro language
Are you missing a feature? Request its implementation here.
-
- Posts: 12
- Joined: Wed Jun 15, 2005 5:43 pm
- Contact:
Macro language
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
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
-
- Posts: 144
- Joined: Tue Mar 25, 2003 11:21 am
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.
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
<oXygen> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service