<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi Frank,</p>
    <p><br>
    </p>
    <p>Please see some remarks below:</p>
    <p><br>
    </p>
    <p>
      <blockquote type="cite">
        <p>I understand that the "type" and "format" attributes are
          required or at least a good practice for "topicref" elements.<br>
        </p>
      </blockquote>
      They are not required and they are not a best practice either.</p>
    <p>From what I've experienced along these years, most end users who
      want these attributes to be added automatically are usually the
      ones migrating from Framemaker or using both Oxygen and Framemaker
      on the same set of DITA files.</p>
    <p>My general best practice for these attributes would be:</p>
    <p><br>
    </p>
    <p>1) For the "type" attribute, never set it on any link or topicref
      as the publishing engine will infer it from the target.</p>
    <p>2) For the "format" attribute, Oxygen by default sets it on
      references to DITA Maps and non-DITA topics, but when referencing
      DITA topics, the @format attribute is not set automatically as
      it's default value when not set is "dita".<br>
    </p>
    <p><br>
      <blockquote type="cite">
        <p> </p>
        <p><br>
        </p>
        <p>When I insert a new dita resource into a ditamap (i.e. a new
          topic or map which I create and insert in one go), oXygen
          should add these attributes automatically. I have set the
          options under "Options > Preferences > DITA > Maps"
          accordingly.</p>
        <p><br>
        </p>
        However, only "format" attributes are set, "type" attributes are
        not set although I have checked both options.</blockquote>
      Checking those "Format" and "Type" checkboxes in the "Options >
      Preferences > DITA > Maps" preferences page should work...</p>
    <p>I tested and indeed, if in the DITA Maps Manager I insert a
      reference to an existing topic file, the attributes are
      automatically added, but if I use for example the contextual
      action "Append child->New" to create a topic and insert a
      reference to it, then indeed the attributes are not set on the
      topicref. Is this close to how you are doing things on your side?</p>
    <p>I added an internal issue to look into fixing this problem on our
      side, adding the issue ID below for future reference:</p>
    <p><br>
    </p>
    <p>    EXM-52131 DITA Maps Manager creating new topic does not
      automatically add type and format attributes to topicref</p>
    <p><br>
    </p>
    <p>Hope this helps.<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>
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 1/3/23 21:08, Frank Dissinger wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:ee737cce-b629-956d-4fa6-b462a18b1b60@cgs-oris.com">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <p>Hi list,</p>
      <p><br>
      </p>
      <p>I understand that the "type" and "format" attributes are
        required or at least a good practice for "topicref" elements.<br>
      </p>
      <p><br>
      </p>
      <p>When I insert a new dita resource into a ditamap (i.e. a new
        topic or map which I create and insert in one go), oXygen should
        add these attributes automatically. I have set the options under
        "Options > Preferences > DITA > Maps" accordingly.</p>
      <p><br>
      </p>
      <p>However, only "format" attributes are set, "type" attributes
        are not set although I have checked both options.<br>
      </p>
      <p><br>
      </p>
      <p>Is this a bug or am I missing something?</p>
      <p><br>
      </p>
      <p>I use oXygen V25.<br>
      </p>
      <p><br>
      </p>
      <p>Regards,</p>
      <p><br>
      </p>
      <p>Frank<br>
      </p>
      <br>
      <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>
              <br>
            </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>