Ability to Enable/Disable Track Changes using PI
Are you missing a feature? Request its implementation here.
Ability to Enable/Disable Track Changes using PI
I have the need to be able to enable/disable the Track Changes feature by defining an Oxygen-specific processing instruction inside the document. This would provide customers with the ability to control this functionality remotely by making slight changes to the document before it opens in Oxygen. For example:
Thanks for considering..
Brian
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<?oxy_track_changes owner="wcoyote" enabled="yes" locked="yes"?>
<topic id="N10018">
<title>Introduction</title>
...
Brian
Re: Ability to Enable/Disable Track Changes using PI
Coincidentally I just noticed that this feature was partially added in 12.2. Once again, you guys are awesome:
I couldn't find any documentation on this feature, though. Are there any other options? It would be nice to be able to lock this functionality for a particular revision.
Code: Select all
<?oxy_options track_changes="on"?>
I couldn't find any documentation on this feature, though. Are there any other options? It would be nice to be able to lock this functionality for a particular revision.
Re: Ability to Enable/Disable Track Changes using PI
Hi Brian,
Yes, starting from Oxygen 12.2 the initial track changes state is saved as a processing instruction in the XML document. This is controlled by a combo box in the Editor / Pages / Author / Review preferences page:
http://www.oxygenxml.com/doc/ug-oxygen/ ... anges.html
What did you search for in the user manual?
Maybe we can update it to make the feature more searchable.
From what I understand you also want to lock the state for a certain XML document. This is not possible but you might have some workarounds.
Oxygen has support for plugins (Java based) and one plugin type can be used to hide buttons from the toolbar. For example you could hide the Track Changes button from the toolbar using a Startup plugin implementation:
http://www.oxygenxml.com/developer.html ... er_Plugins
Another think which you could do would be to use a custom processing instruction in the XML document and after the document is opened you could scan it, check for the processing instruction and enable track changes using the API. This would mean implementing a Workspace Access plugin type.
Of course everybody would need to have the plugin installed in their Oxygen installation.
So if you are interested in using such approaches by implementing Java plugins for Oxygen I can give you more details.
Regards,
Radu
Yes, starting from Oxygen 12.2 the initial track changes state is saved as a processing instruction in the XML document. This is controlled by a combo box in the Editor / Pages / Author / Review preferences page:
http://www.oxygenxml.com/doc/ug-oxygen/ ... anges.html
What did you search for in the user manual?
Maybe we can update it to make the feature more searchable.
From what I understand you also want to lock the state for a certain XML document. This is not possible but you might have some workarounds.
Oxygen has support for plugins (Java based) and one plugin type can be used to hide buttons from the toolbar. For example you could hide the Track Changes button from the toolbar using a Startup plugin implementation:
http://www.oxygenxml.com/developer.html ... er_Plugins
Another think which you could do would be to use a custom processing instruction in the XML document and after the document is opened you could scan it, check for the processing instruction and enable track changes using the API. This would mean implementing a Workspace Access plugin type.
Of course everybody would need to have the plugin installed in their Oxygen installation.
So if you are interested in using such approaches by implementing Java plugins for Oxygen I can give you more details.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Re: Ability to Enable/Disable Track Changes using PI
I searched on "oxy_options" and "track_changes" looking for more details on the specific processing instruction. I'd love to know of other, if any, oxy_options that are available to me from within the document. I could see additional attributes being very useful for things like hiding colspecs, explicitly specifying document type associations, specifying default display modes, and other Oxygen specific functionality.Radu wrote: What did you search for in the user manual?
Maybe we can update it to make the feature more searchable.
That's a possibility, but a clever user would quickly figure out how to turn off track changes, make a handful of changes, and then check the document back in. Granted, this feature likely wasn't intended as a control mechanism, but I know of at least a few people that are using it that way. A lock attribute would tie in nicely to the track_changes attribute you already have.Radu wrote: Oxygen has support for plugins (Java based) and one plugin type can be used to hide buttons from the toolbar. For example you could hide the Track Changes button from the toolbar using a Startup plugin implementation.
Re: Ability to Enable/Disable Track Changes using PI
Hi Brian,
If you try to impose the state (and hide the toolbar button) using the Java API and all users are bound to install your custom plugin in Oxygen then they would have no means to disable change tracking.
Of course even in this case the user could still switch to the Text page and edit from there. The next Oxygen version will also have Java API to reject switching to a certain page.
Regards,
Radu
As long as you rely on a processing instruction in the XML to lock track changes a clever user can switch to the Text page and remove the lock from there.That's a possibility, but a clever user would quickly figure out how to turn off track changes, .......A lock attribute would tie in nicely to the track_changes attribute you already have.
If you try to impose the state (and hide the toolbar button) using the Java API and all users are bound to install your custom plugin in Oxygen then they would have no means to disable change tracking.
Of course even in this case the user could still switch to the Text page and edit from there. The next Oxygen version will also have Java API to reject switching to a certain page.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Re: Ability to Enable/Disable Track Changes using PI
Those are good points. Thanks for the information.Radu wrote:Hi Brian,
As long as you rely on a processing instruction in the XML to lock track changes a clever user can switch to the Text page and remove the lock from there.That's a possibility, but a clever user would quickly figure out how to turn off track changes, .......A lock attribute would tie in nicely to the track_changes attribute you already have.
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service