Page 1 of 1

Editor Macro Support

Posted: Tue Sep 20, 2016 2:51 am
by cjboorman
I'm migrating from Microsoft Word to oxygen XML Editor. I'm accustomed to creating small macros (in Visual Basic for Applications) to help me accomplish large amounts of work in a short period of time. I'm currently building a large DITA map (and creating hundreds of DITA topics) by cutting and pasting content from a very large Word document. I've found that creating tables really slows me down. When I copy a table, I have to use the XML code editor to customize the table properties (e.g., frame="all" rowsep="1" colsep="1", and adding the <thead> element). I would like to write a macro that searches through the XML content and finds & replaces these elements and attributes - to make tables match what oxygen would have created if I'd used "Insert Table". Does oXygen XML Editor support this kind of automation?

Re: Editor Macro Support

Posted: Tue Sep 20, 2016 9:52 am
by Radu
Hi,

If your refactor is more complex and cannot be fone using the Find/Replace in Files tool we have a feature called XML Refactor which allows you to apply a small XQuery or XSLT refactor script either on an XML document or on a collection of XML documents:

https://www.oxygenxml.com/doc/versions/ ... nts-1.html

Regards,
Radu