<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi Stefan,</p>
<p><br>
</p>
<p>Thank you for your reply. I already did a similar thing for the
MiramoPDF plug-in:</p>
<p><br>
</p>
<p> <xsl:variable name="bc.currentDate"
select="format-date(current-date(), '[Y0001]')"/><br>
<xsl:template match="*[@outputclass = 'current_year']" ><br>
<xsl:value-of select="$bc.currentDate" /><br>
</xsl:template><br>
</p>
<p><br>
</p>
<p>It was a matter of just adding this code to a "custom.xsl" file.
In oXygen's CHM tranformation, I wouldn't know where add this
code. I am not XSLT savvy enough.</p>
<p><br>
</p>
<p>Regards,</p>
<p>Frank<br>
</p>
<p><br>
</p>
<p><br>
</p>
<div class="moz-cite-prefix">
<hr width="100%" size="2">Am 13.02.2023 um 22:39 schrieb Stefan
Jung:<br>
</div>
<blockquote type="cite"
cite="mid:648142987.201967.1676324395296@office.mailbox.org">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta charset="UTF-8">
<div> Hi Frank, </div>
<div> <br>
</div>
<div> It depends a little bit where exactly you want to have that
code and for what purpose. If you are looking for an inline
element, which can be inserted everywhere, you can create a new
element or you use, for example, a phrase element with an
outputclass attribute and then inject the date in the format of
your choice in XSLT. </div>
<div> <br>
</div>
<div> <ph outputclass="copyright"/> </div>
<div> <br>
</div>
<div> Best regards </div>
<div> <br class="prevent-remove">
</div>
<div> <br class="prevent-remove">
</div>
<div> <br>
</div>
<div class="ox-mail-signature"> Gesendet mit OX Mail </div>
<div> <br>
</div>
<div class="reply-header"> Frank Dissinger <<a
href="http://frank.dissinger@cgs-oris.com" rel="noopener
noreferrer" moz-do-not-send="true">frank.dissinger@cgs-oris.com</a>>
hat am February 13, 2023 um 5:37 PM geschrieben: </div>
<div class="ox-mail-content-wrapper">
<blockquote class="quoted-mail">
<p>Hi list,</p>
<p><br>
</p>
<p>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?</p>
<p><br>
</p>
<p>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.<br>
</p>
<p><br>
</p>
<p>Regards,</p>
Frank
<div class="moz-signature"> -- <br>
<div class="moz-signature">
<style>div.signature {font-family: Verdana, sans-serif; font-size: 10pt; color: #7F8C8D; padding-top: 0.4em;}div.name {padding-bottom: 0.8em; padding-top: 0.8em;}div.contact {padding-bottom: 0.8em;}p {margin: 0;}span.separator {border-top-style: dotted; border-top-width: 2px; padding-top: 0.6em;}a {}</style>
<div class="signature">
<div class="name">
<p><strong>Frank Dissinger</strong></p>
<p>Documentation Manager</p>
<p>....................................................................</p>
</div>
<div class="contact">
<p><strong>CGS Publishing Technologies International
GmbH</strong></p>
<p><strong>Email </strong><a
class="moz-txt-link-freetext"
href="mailto:frank.dissinger@cgs-oris.com"
rel="noopener noreferrer" moz-do-not-send="true">frank.dissinger@cgs-oris.com</a>
| <strong>Web</strong> <a
href="http://www.cgs-oris.com/" rel="noopener
noreferrer" moz-do-not-send="true">www.cgs-oris.com</a></p>
<p><strong>Address</strong> Kettelerstr. 24 | D-63512
Hainburg | Germany</p>
<p><strong>Phone</strong> +49 6182 9626-27 | <strong>Fax</strong>
+49 6182 9626-99</p>
<p><strong>Commercial register</strong> Offenbach, HRB
no. 21495</p>
<p><strong>Managing directors</strong> Bernd Rückert,
Christoph Thommessen</p>
<p><br>
</p>
<a href="https://www.cgs-oris.com/signatur"
rel="noopener noreferrer" moz-do-not-send="true"><img
style="width: 394px; height: 200px;"
src="https://www.cgs-oris.com/Signatur.png"
alt="https://www.cgs-oris.com/Signatur.png"
class="" moz-do-not-send="true" width="394"
height="200"></a> </div>
</div>
</div>
</div>
</blockquote>
</div>
</blockquote>
<div class="moz-signature">-- <br>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title></title>
<div class="moz-signature">
<style>
div.signature {font-family: Verdana, sans-serif; font-size: 10pt; color: #7F8C8D; padding-top: 0.4em;}
div.name {padding-bottom: 0.8em; padding-top: 0.8em}
div.contact {padding-bottom: 0.8em;}
p {margin: 0;}
span.separator {border-top-style: dotted; border-top-width: 2px; padding-top: 0.6em;}
a {color: inherit}
</style>
<div class="signature">
<div class="name">
<p><strong>Frank Dissinger</strong></p>
<p>Documentation Manager</p>
<p>....................................................................</p>
</div>
<div class="contact">
<p><strong>CGS Publishing Technologies International GmbH</strong></p>
<p><strong>Email </strong><a
href="mailto:frank.dissinger@cgs-oris.com"
target="_blank" class="moz-txt-link-freetext">frank.dissinger@cgs-oris.com</a>
| <strong>Web</strong> <a
href="http://www.cgs-oris.com/" target="_blank">www.cgs-oris.com</a></p>
<p><strong>Address</strong> Kettelerstr. 24 | D-63512
Hainburg | Germany</p>
<p><strong>Phone</strong> +49 6182 9626-27 | <strong>Fax</strong>
+49 6182 9626-99</p>
<p><strong>Commercial register</strong> Offenbach, HRB no.
21495</p>
<p><strong>Managing directors</strong> Bernd Rückert,
Christoph Thommessen</p>
<p><br>
</p>
<a href="https://www.cgs-oris.com/signatur"><img
alt="https://www.cgs-oris.com/Signatur.png"
longdesc="https://www.cgs-oris.com/signatur"
src="https://www.cgs-oris.com/Signatur.png" width="394"
height="200"></a> </div>
</div>
</div>
</div>
</body>
</html>