AI Positron - Looking for suggestion on <critdates>

Oxygen general issues.
Subathra
Posts: 8
Joined: Tue Apr 22, 2025 4:35 pm

AI Positron - Looking for suggestion on <critdates>

Post by Subathra »

Hi,
I am preparing a custom AI Positron action JSON file for including metadata. I want to know if there is any way to update the <created> and <revised modified> dates for <critdates> from Git history or Oxygen XML topic properties. Any help on this would be great. Thanks!
Radu
Posts: 9434
Joined: Fri Jul 09, 2004 5:18 pm

Re: AI Positron - Looking for suggestion on <critdates>

Post by Radu »

Hi,

Oxygen has support to expand a number of editor variables, they are documented here:
https://www.oxygenxml.com/doc/versions/ ... ables.html
For example the

Code: Select all

${date(yyyy-MM-dd'T'HH:MM)}
editor variable expands to the current date with the specified pattern.
And inside AI actions you can use parameters which can use Oxygen editor variables as values, I added a sample action here:
https://github.com/oxygenxml-incubator/ ... rolog.json
So maybe obtaining the current system date will be useful to you, we do not have editor variables or functions to access Git related properties.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Subathra
Posts: 8
Joined: Tue Apr 22, 2025 4:35 pm

Re: AI Positron - Looking for suggestion on <critdates>

Post by Subathra »

Thanks, Radu. Do we have any option to pull the created date from Oxygen topic properties itself?

For the new topics, we can use the current date for created as well as revised. But for the existing topics, adding the created date value manually will definitely consume a lot of time.
Radu
Posts: 9434
Joined: Fri Jul 09, 2004 5:18 pm

Re: AI Positron - Looking for suggestion on <critdates>

Post by Radu »

Hi Subathra,
About this remark:
Do we have any option to pull the created date from Oxygen topic properties itself?
What do you mean by "Oxygen topic properties"?
Do you want to find out when a specific file was actually created and committed to the Git project? This is not an information kept inside the XML file, indeed one would need to look in the Git history for that specific file, maybe use some Git commands to create a list of files in the project and the date when they were committed. But this is not related to the AI add-on.
Maybe for future work your writers can install and use the DITA Prolog updater add-on which automatically adds created date + modification dates to the topics when the writers create them or modify them:
https://www.oxygenxml.com/doc/ug-addons ... dater.html

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply