Warehouse file - automatic additions/updates

Are you missing a feature? Request its implementation here.
petrht
Posts: 9
Joined: Tue Jun 04, 2024 1:27 pm

Warehouse file - automatic additions/updates

Post by petrht »

Hello, not sure wherther this issue has been already addressed, but we have a "warehouse" file where we store reusable components like sentences we use quite often etc. And now - in case you want to create a reusable content, you have to manually add it into the warehouse file (copy paste, write it down etc.) and then use it. Isn't it possible to have a feature which would allow you to simply work on a dita file and once you realize you have a sentence that could be used in the future as a reusable content, you simply perform something like right click - add existing marked sentence into a warehouse file? Then your warehouse file would be automatically updated with a new sentence. Because in case you mark the sentence and add it as reusable, you have to either create a new file with reusable content or re-write the existing warehouse file you have (bad option of course). In case there already exists such a mechanism, please accept my apology.
Thanks
Petr
Radu
Posts: 9472
Joined: Fri Jul 09, 2004 5:18 pm

Re: Warehouse file - automatic additions/updates

Post by Radu »

Hi Petr,

Your use case makes sense, we already have an internal issue opened for it, I added your remarks to it, pasting its ID below for future reference:

EXM-52494 Refactor to extract element to reusable components topic

The problem is that most companies do not have just one reusable elements file, they may have for example a file with reusable task elements, one or multiple files with reusable topic elements split maybe semantically (reusable paragraphs, reusable lists, reusable notes). And I'm not sure how we could go around finding out as an application the way in which each company handles the reusable content.
There is also the problem that the selection may be for example a list item, so when you extract it to the reusable elements file you need to also create automatically the parent <ol> element otherwise the selection would be invalid...

Oxygen has APIs, it is very customizable, one can create for example an Oxygen framework configuration which provides custom actions implemented in Java which can use our APIs to extract the selection and manipulate it.


Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply