Automated copyright year changes with DITA?

Post here questions and problems related to editing and publishing DITA content.
quaitte
Posts: 1
Joined: Wed May 30, 2018 5:04 am

Automated copyright year changes with DITA?

Post 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!
ionela
Posts: 407
Joined: Mon Dec 05, 2011 6:08 pm

Re: Automated copyright year changes with DITA?

Post 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
Ionela Istodor
oXygen XML Editor and Author Support
Post Reply