Hi Radu,
Thank you for your reply. I am afraid I am not XSLT-savvy enough to adapt sketched code and I have never created any DITA-OT plugin. I would need the exact code and precise instructions where to put that code in the CHM transformation...
I wonder whether the following solution I found for MiramoPDF
could be adapted to oXygen's CHM transformation?
Copyright.dita
Hi Frank,
An Oxygen editor variable expands only once. You seem to need some kind of macro which would expand every time you publish.
So you seem to need more like a publishing customization.
For DITA XML maybe you can use the <data> element with a certain name:
<data name="currentYear"/>and then create a DITA Open Toolkit XSLT-based customization plugin which matches this element at publishing time and replaces it with the current date. Are you familiar with XSLT? Would you like to pursue this direction? If so maybe I can try to sketch a small publishing plugin which would do this.
Regards,
Radu
Radu Coravu Oxygen XML EditorOn 2/13/23 18:36, Frank Dissinger wrote:
Hi list,
How can I insert the current date into a dita file? I would like to have oXygen automatically update the year of a copyright notice. I know that I can define editor variables. But how can I embed them in the dita code?
If this needs to be tied to the XSL that produces the deliverable: I need this for CHM, which I generate with oXygen. (I have already found a solution for MiramoPDF. ) And I'd need to know where exactly to add the code... Thank you.
Regards,
Frank--
Frank Dissinger
Documentation Manager
....................................................................
CGS Publishing Technologies International GmbH
Email frank.dissinger@cgs-oris.com | Web www.cgs-oris.com
Address Kettelerstr. 24 | D-63512 Hainburg | Germany
Phone +49 6182 9626-27 | Fax +49 6182 9626-99
Commercial register Offenbach, HRB no. 21495
Managing directors Bernd Rückert, Christoph Thommessen
![]()
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com https://www.oxygenxml.com/mailman/listinfo/oxygen-user
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com https://www.oxygenxml.com/mailman/listinfo/oxygen-user
Frank Dissinger
Documentation Manager
....................................................................
CGS Publishing Technologies International GmbH
Email frank.dissinger@cgs-oris.com | Web www.cgs-oris.com
Address Kettelerstr. 24 | D-63512 Hainburg | Germany
Phone +49 6182 9626-27 | Fax +49 6182 9626-99
Commercial register Offenbach, HRB no. 21495
Managing directors Bernd Rückert, Christoph Thommessen