<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi Frank,</p>
    <p><br>
    </p>
    <p>An Oxygen editor variable expands only once. You seem to need
      some kind of macro which would expand every time you publish.</p>
    <p>So you seem to need more like a publishing customization.</p>
    <p>For DITA XML maybe you can use the <data> element with a
      certain name:</p>
    <p>
      <blockquote type="cite"><data name="currentYear"/></blockquote>
      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.<br>
    </p>
    <p><br>
    </p>
    <p>Regards,</p>
    <p>Radu</p>
    <pre class="moz-signature" cols="72">Radu Coravu
Oxygen XML Editor</pre>
    <p></p>
    <div class="moz-cite-prefix">On 2/13/23 18:36, Frank Dissinger
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:5bd6cbba-e3ee-5776-0a64-285a9d293390@cgs-oris.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <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>
        <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"
                  moz-do-not-send="true">frank.dissinger@cgs-oris.com</a>
                | <strong>Web</strong> <a
                  href="http://www.cgs-oris.com/" target="_blank"
                  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"
                moz-do-not-send="true"><img
                  alt="https://www.cgs-oris.com/Signatur.png"
                  longdesc="https://www.cgs-oris.com/signatur"
                  src="https://www.cgs-oris.com/Signatur.png"
                  moz-do-not-send="true" width="394" height="200"></a> </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
oXygen-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:oXygen-user@oxygenxml.com">oXygen-user@oxygenxml.com</a>
<a class="moz-txt-link-freetext" href="https://www.oxygenxml.com/mailman/listinfo/oxygen-user">https://www.oxygenxml.com/mailman/listinfo/oxygen-user</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">
</pre>
  </body>
</html>