Deleting all ?oxy_comment

Oxygen general issues.
ari
Posts: 14
Joined: Sun Apr 01, 2012 1:17 pm

Deleting all ?oxy_comment

Post 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` ?
Radu
Posts: 9058
Joined: Fri Jul 09, 2004 5:18 pm

Re: Deleting all ?oxy_comment

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
ari
Posts: 14
Joined: Sun Apr 01, 2012 1:17 pm

Re: Deleting all ?oxy_comment

Post 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!
Radu
Posts: 9058
Joined: Fri Jul 09, 2004 5:18 pm

Re: Deleting all ?oxy_comment

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply