Help with Authoring Action in Oxy 23.0
Posted: Wed Jan 13, 2021 3:40 pm
Hi,
I have a working author action in Oxygen 22.1 that no longer works in Oxygen 23.0.
I have exported the action to be used in the new framework. It's found, and it works fine in 22, but it's just not working in 23.
I don't have the slightest clue why this no longer works. Could you help me with this, please?
I know there is the DITA Prolog Updater add-on, but this just doesn't work for us, so at the moment, we want to stick with our action.
Thanks and regards,
Christina
I have a working author action in Oxygen 22.1 that no longer works in Oxygen 23.0.
I have exported the action to be used in the new framework. It's found, and it works fine in 22, but it's just not working in 23.
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<a:authorAction xmlns:a="http://www.oxygenxml.com/ns/author/external-action"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.oxygenxml.com/ns/author/external-action http://www.oxygenxml.com/ns/author/external-action/authorAction.xsd"
id="smtg.update.revised">
<a:name>Update the revised element on save</a:name>
<a:description>Update the revised element on save</a:description>
<a:operations>
<a:operation id="ChangeAttributeOperation">
<a:xpathCondition>//revised[string-length(@modified) = 0 or xs:date(@modified) != current-date()]</a:xpathCondition>
<a:arguments>
<a:argument name="elementLocation">//revised</a:argument>
<a:argument name="name">modified</a:argument>
<a:argument name="value">${date(yyyy-MM-dd)}</a:argument>
</a:arguments>
</a:operation>
</a:operations>
<a:enabledInReadOnlyContext>false</a:enabledInReadOnlyContext>
</a:authorAction>
I know there is the DITA Prolog Updater add-on, but this just doesn't work for us, so at the moment, we want to stick with our action.
Thanks and regards,
Christina