Reuse Actions across frameworks
Posted: Wed Aug 12, 2020 8:41 pm
We've extended the DITA, DITAMap, Maven, and Ant frameworks and have a set of custom toolbars/actions that we want to reuse across all 4. The only workable method we've been able to determine thus far is duplicating all of them in every framework, which is not sustainable. Is there a way we can write them once and reuse them in different frameworks?
We tried creating a framework that had association rules for all of them, but that was not workable, since our frameworks are extensions of others and we'd lose the extension benefits.
The only hack I can think of quickly is to edit the XML representation of the frameworks and copy the relevant sections to each of the others by hand, or by using a script to do the same, but that's problematic too. Is there an inclusion element we can use in the frameworks' XML?
We tried creating a framework that had association rules for all of them, but that was not workable, since our frameworks are extensions of others and we'd lose the extension benefits.
The only hack I can think of quickly is to edit the XML representation of the frameworks and copy the relevant sections to each of the others by hand, or by using a script to do the same, but that's problematic too. Is there an inclusion element we can use in the frameworks' XML?