Page 1 of 1

Deleting all ?oxy_comment

Posted: Thu Jun 24, 2021 12:21 pm
by ari
I would like to batch delete all oxygen comments within an TEI XML document

Code: Select all

<?oxy_comment_start?>…<?oxy_comment_end
In author view while I can add a new comment from "Edit > Review" menu (Im on a Mac running oXygen 3.1 build 2021040908) the "Show/Edit Comment(s)" and "Remove Comment(s)" menu items are disabled. I can only delete the comments one by one after locating them

What am I missing, why is "Remove Comment(s)" menu item disabled is there another way to batch delete an `?oxy_comment` ?

Re: Deleting all ?oxy_comment

Posted: Thu Jun 24, 2021 12:54 pm
by Radu
Hi,

You can select all the content, then right click and "Remove all comments".
Or in the main menu Window->Show view->"Review view" and in the Review view select all, right click and remove all comments.

Regards,
Radu

Re: Deleting all ?oxy_comment

Posted: Thu Jun 24, 2021 1:11 pm
by ari
Radu wrote: Thu Jun 24, 2021 12:54 pm Hi,

You can select all the content, then right click and "Remove all comments".
Or in the main menu Window->Show view->"Review view" and in the Review view select all, right click and remove all comments.

Regards,
Radu
worked like a charm, thank you!

Re: Deleting all ?oxy_comment

Posted: Thu Jun 24, 2021 1:14 pm
by Radu
Hi Ari,

With pleasure.
We plan for a future Oxygen version to ship a custom XML refactoring action (based on XSLT) for accepting all track changes and removing all comments.
There are a bunch of XML refactoring actions here:
https://github.com/oxygenxml/dita-refactoring-examples

they are based on an XSLT stylesheet which can be used to filter for example certain processing instructions.
The good thing about refactoring actions is that they can be applied on multiple documents, on an entire folder for example.

Regards,
Radu