Multiple inheritance for frameworks?
Posted: Thu Feb 14, 2019 11:57 am
I am looking for a way to have more than one frameworks apply to the same source file. Here is my scenario.
I am currently working with OxygenXML 18.1.
We have a framework that operates on our own specialized DITA flavor. It is extended from the standard DITA framework that comes with Oxygen.
We also have a second framework that operates on DITA or our specialization, and provides generic functionality (checking the source against the use of deprecated terms, and suggesting <term/> markup).
I would like to share the second (termchecker) framework as add-on; and would expect that when it is installed, it adds to any functionality that users may already have configured in their own settings. I.e. if they have a plain DITA framework configured, it adds on top of that (as if it was extending the plain DITA framework), if they have our other framework configured (or any other DITA framework) then it adds/extends on top of that.
"Adding" in this context primarily means supplying additional validation (and possibly transformation) scenarios. So I would expect the applicable validation scenarios to be the union of those supplied by all frameworks with matching association rules.
Unfortunately, it does not work this way -- the highest priority framework whose association rules match wins. Exclusively.
Is there a way to have several frameworks apply to the same file?
Thanks
Wolfgang
I am currently working with OxygenXML 18.1.
We have a framework that operates on our own specialized DITA flavor. It is extended from the standard DITA framework that comes with Oxygen.
We also have a second framework that operates on DITA or our specialization, and provides generic functionality (checking the source against the use of deprecated terms, and suggesting <term/> markup).
I would like to share the second (termchecker) framework as add-on; and would expect that when it is installed, it adds to any functionality that users may already have configured in their own settings. I.e. if they have a plain DITA framework configured, it adds on top of that (as if it was extending the plain DITA framework), if they have our other framework configured (or any other DITA framework) then it adds/extends on top of that.
"Adding" in this context primarily means supplying additional validation (and possibly transformation) scenarios. So I would expect the applicable validation scenarios to be the union of those supplied by all frameworks with matching association rules.
Unfortunately, it does not work this way -- the highest priority framework whose association rules match wins. Exclusively.
Is there a way to have several frameworks apply to the same file?
Thanks
Wolfgang