<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi Radu,</p>
    <p><br>
    </p>
    <p>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...</p>
    <p><br>
    </p>
    <p>I wonder whether the following solution I found for MiramoPDF
      could be adapted to oXygen's CHM transformation? <br>
    </p>
    <p><font size="4" face="monospace"><br>
      </font></p>
    <p><font size="4" face="monospace"><br>
      </font></p>
    <p><font size="4" face="monospace"><font color="#0000ff">Copyright.dita</font><br>
      </font></p>
    <div class="moz-cite-prefix"><font size="4" face="monospace"><ph
        audience="print" outputclass="current_year"></font><br>
    </div>
    <div class="moz-cite-prefix"><font color="#0000ff"><br>
      </font></div>
    <div class="moz-cite-prefix"><font color="#0000ff">...\Oxygen XML
        Editor
21\frameworks\dita\DITA-OT3.x\plugins\com.miramo.oris-mmpdf\config\xsl\custom.xsl</font><br>
    </div>
    <div class="moz-cite-prefix"><font size="4" face="monospace"><xsl:stylesheet
        xmlns:xsl=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/1999/XSL/Transform">"http://www.w3.org/1999/XSL/Transform"</a><br>
            xmlns:xs=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/2001/XMLSchema">"http://www.w3.org/2001/XMLSchema"</a>
        exclude-result-prefixes="xs opentopic" version="2.0"<br>
            xmlns:mm=<a class="moz-txt-link-rfc2396E" href="http://www.miramo.com/XSL/Transform">"http://www.miramo.com/XSL/Transform"</a><br>
            xmlns:opentopic=<a class="moz-txt-link-rfc2396E" href="http://www.idiominc.com/opentopic">"http://www.idiominc.com/opentopic"</a>><br>
            <xsl:include href="./functionstubs.xsl"/></font></div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix"><b><font size="4" face="monospace">   
          <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></font></b></div>
    <div class="moz-cite-prefix"><font size="4" face="monospace"><br>
      </font></div>
    <div class="moz-cite-prefix"><font size="4" face="monospace"></xsl:stylesheet><br>
      </font></div>
    <div class="moz-cite-prefix"><font size="4" face="monospace"></font><br>
    </div>
    <div class="moz-cite-prefix">Could this code be added somewhere in
      the CHM transformation?</div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">Regards,</div>
    <div class="moz-cite-prefix">Frank</div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">
      <hr width="100%" size="2">Am 14.02.2023 um 07:10 schrieb Oxygen
      XML Editor Support (Radu Coravu):<br>
    </div>
    <blockquote type="cite"
      cite="mid:242d4073-0a0d-d820-a3aa-ecea1c5d5bb0@oxygenxml.com">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <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> </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><br>
      </p>
      <p>Regards,</p>
      <p>Radu</p>
      <pre class="moz-signature" cols="72">Radu Coravu
Oxygen XML Editor</pre>
      <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 moz-txt-link-freetext" href="mailto:oXygen-user@oxygenxml.com" moz-do-not-send="true">oXygen-user@oxygenxml.com</a>
<a class="moz-txt-link-freetext" href="https://www.oxygenxml.com/mailman/listinfo/oxygen-user" moz-do-not-send="true">https://www.oxygenxml.com/mailman/listinfo/oxygen-user</a>
</pre>
      </blockquote>
      <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>
    <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>