<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi Radu,</p>
    <p><br>
    </p>
    <p>Works like a charm. Thank you!!!</p>
    <p><br>
    </p>
    <p>Regards,</p>
    <p>Frank</p>
    <p><br>
    </p>
    <hr width="100%" size="2">
    <p><br>
    </p>
    <div class="moz-cite-prefix">Am 14.02.2023 um 10:27 schrieb Oxygen
      XML Editor Support (Radu Coravu):<br>
    </div>
    <blockquote type="cite"
      cite="mid:7e59ec44-150f-a12e-fd29-11bf09183de6@oxygenxml.com">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <p>Hi Frank,</p>
      <p><br>
      </p>
      <p>I created a small DITA OT plugin (please see attached) which
        adds the same customization you have for Miramo to all
        XHTML-based outputs, including CHM. You can look into it to see
        how the plugin works.<br>
      </p>
      <p>DITA OT plugins are installed something like this:<br>
      </p>
      <p><br>
      </p>
      <p><a class="moz-txt-link-freetext"
href="https://www.oxygenxml.com/doc/ug-editor/topics/dita-ot-install-plugin.html"
          moz-do-not-send="true">https://www.oxygenxml.com/doc/ug-editor/topics/dita-ot-install-plugin.html</a><br>
      </p>
      <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/14/23 10:50, Frank Dissinger
        wrote:<br>
      </div>
      <blockquote type="cite"
        cite="mid:5c4c0064-f768-cbf6-e858-e14d45822217@cgs-oris.com">
        <meta http-equiv="Content-Type" content="text/html;
          charset=UTF-8">
        <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"
              moz-do-not-send="true">"http://www.w3.org/1999/XSL/Transform"</a><br>
                xmlns:xs=<a class="moz-txt-link-rfc2396E"
              href="http://www.w3.org/2001/XMLSchema"
              moz-do-not-send="true">"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"
              moz-do-not-send="true">"http://www.miramo.com/XSL/Transform"</a><br>
                xmlns:opentopic=<a class="moz-txt-link-rfc2396E"
              href="http://www.idiominc.com/opentopic"
              moz-do-not-send="true">"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"><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<br>
          </blockquote>
        </blockquote>
      </blockquote>
    </blockquote>
    <div class="moz-signature">
      <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>