Ignoring processing instructions while using track changes!

Post here questions and problems related to editing and publishing DITA content.
mu258770
Posts: 157
Joined: Mon Aug 18, 2014 4:11 pm

Ignoring processing instructions while using track changes!

Post by mu258770 »

Hi team,

We would like to know if there are any options in Oxygen (Eclipse Oxygen 20.1 and Web Author 22.1) to ignore processing instructions for track changes.

Consider we have a processing instruction existing in a topic like below,

Code: Select all

<?checkData status="red"?>
Now if we keep track changes ON and delete this processing instruction, the content become like this:

Code: Select all

<?oxy_delete author="abc" timestamp="20210430T145228+0530" content="&lt;?checkData status=&quot;red&quot;?&gt;"?>
<?oxy_options track_changes="on"?>
But we do not need this to happen. We need the processing instruction to just get deleted. The track changes processing instructions should not wrap the existing processing instruction.

Do you know if this is possible? If so, how?

Regards,
Shabeer
cristi_talau
Posts: 495
Joined: Thu Sep 04, 2014 4:22 pm

Re: Ignoring processing instructions while using track changes!

Post by cristi_talau »

Hello,

The achieve this behavior you need to implement a plugin and register an AuthorDocumentFilter [1]. In this filter you can override the builtin delete behavior. For example, you can disable change tracking before delegating to the default "delete" behavior.

Best,
Cristian

[1] https://www.oxygenxml.com/InstData/Edit ... ilter.html
Post Reply