Page 1 of 1

Automated copyright year changes with DITA?

Posted: Wed May 30, 2018 5:10 am
by quaitte
I just finished updating the copyright year in all the front matter in my company's user manuals and I started wondering if there was a way to automatically insert the current year every time the docs are built. A quick google search didn't have any hacks jumping out of me right away.

Though I guess I could create a batch file to go through all the necessary files and update the year....but I'm still curious if I can add some sort of "current year" variable into the dita markup. I'm just coming back to DITA after being in the wiki world for a decade so I'm extremely rusty; my apologies.

Thanks in advance for any help/input!

Re: Automated copyright year changes with DITA?

Posted: Wed May 30, 2018 2:18 pm
by ionela
Hello,

You can achieve this developing a customization using XSLT extension points from publishing templates. You can find mode details about this in our user manual:
https://www.oxygenxml.com/doc/versions/ ... mport.html

The publishing templates examples (footer customizations) are available on GitHub:
https://github.com/oxygenxml/oxygen-pub ... s-examples

Regards,
Ionela