<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hello Frank,</p>
    <p><br>
    </p>
    <p>Please see some answers below:<br>
    </p>
    <p><br>
    </p>
    <p>
      <blockquote type="cite">I understand that a topic ID must be
        unique within the scope of the root ditamap used for publishing
        the content. </blockquote>
      Your understanding is incorrect, the topic ID must be unique
      inside the same topic file. So for example if in the "topic.dita"
      you have two inner topics, all topics existing inside the
      "topic.dita" must not have duplicate IDs. But if you have
      "topic1.dita" and "topic2.dita", the <topic> elements in
      both files can have the same ID, the DITA standard does not impose
      a uniqueness restriction for the topic IDs in the context of the
      entire project.</p>
    <p><br>
    </p>
    <p>DITA 1.3 specs:</p>
    <p><a class="moz-txt-link-freetext" href="https://www.oxygenxml.com/dita/1.3/specs/archSpec/base/uri-based-addressing.html">https://www.oxygenxml.com/dita/1.3/specs/archSpec/base/uri-based-addressing.html</a></p>
    <p><br>
    </p>
    <p>
      <blockquote type="cite">This addressing model makes it possible to
        reliably address elements that have values for the <code
          class="+ topic/keyword markup-d/markupname xml-d/xmlatt
          keyword markupname xmlatt">@<span class="highlight">id</span></code>
        <span class="highlight">attribute</span> that are <span
          class="highlight">unique</span> within a single DITA topic,
        but which might not be <span class="highlight">unique</span>
        within a larger XML document that contains multiple DITA topics.</blockquote>
      <br>
    </p>
    <p>But it is true that Oxygen and other tools attempt to create by
      default unique IDs for a created topic file in the context of the
      entire project, some CMSs may need them, sometimes the publishing
      (for example Oxygen's DITA to WebHelp output) may use these unique
      IDs for certain features.</p>
    <p><br>
    </p>
    <p>
      <blockquote type="cite">So there is an arbitrary combination of
        only 9 characters, mostly letters. But perhaps sufficient for
        ensuring uniqueness...</blockquote>
      Indeed the ${id} ID value we generate has about 9-10 unique
      letter-digit combinations. We consider this to be enough. The
      number of unique combinations is about 36 (26 letters in the
      English alphabet + 10 digits) to the power 9, it's 1 followed by
      about 14 digits. We consider this to be enough for a value which
      is not intended to be unique by the DITA specification anyway.</p>
    <p>By the way we also have a longer "${uuid}" editor variable which
      can be used and expanded, a unique sequence of 32 hexadecimal
      digits if you want something even more unique.</p>
    <p><a class="moz-txt-link-freetext" href="https://www.oxygenxml.com/doc/versions/25.1/ug-editor/topics/editor-variables.html">https://www.oxygenxml.com/doc/versions/25.1/ug-editor/topics/editor-variables.html</a><br>
    </p>
    <p><br>
    </p>
    <p>
      <blockquote type="cite">However, when I use the "DITA > Insert
        > Insert New DITA Resource" command, oXygen does not honor
        the "ID Option" setting, but creates IDs which are identical to
        the file name. </blockquote>
      Usually an ID derived from the title or from the file name is more
      user friendly when for example inserting references to elements
      inside a topic. <br>
    </p>
    <p>We would do the same by default when using the "File->New"
      wizard dialog to create the topic but the topic is not yet saved
      on disk so we do not yet know its file name or its title so we use
      the random value instead.</p>
    <p><br>
    </p>
    <p>In the Oxygen Preferences->"DITA / Topics" page there is an
      "Use the filename as the value.. of the root element id" which you
      can uncheck if you want.<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 3/27/23 11:43, Frank Dissinger
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:dc6e5279-f436-79d5-b3a9-47f2a83cf2db@cgs-oris.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <p>Hi all,</p>
      <p><br>
      </p>
      <p>I understand that a topic ID must be unique within the scope of
        the root ditamap used for publishing the content. <br>
      </p>
      <p><br>
      </p>
      <p>FrameMaker, which I used previously, creates IDs of the type<br>
      </p>
      <p><font size="4" face="monospace"><br>
        </font></p>
      <p><font size="4" face="monospace">id172OC0C03J7</font></p>
      <p><br>
      </p>
      <p>So there is an arbitrary combination of 11 digits and letters.</p>
      <p><br>
      </p>
      <p>In oXygen I have set the "DITA > ID Option" as follows:<br>
      </p>
      <p><br>
      </p>
      <p><font size="4"><font face="monospace">${localName}_${id}</font></font></p>
      <p><br>
      </p>
      <p>Which creates IDs of the following type:</p>
      <p><font size="4" face="monospace"><br>
        </font></p>
      <p><font size="4" face="monospace">task_rf2_vcg_ywb</font></p>
      <p><br>
      </p>
      <p>So there is an arbitrary combination of only 9 characters,
        mostly letters. But perhaps sufficient for ensuring
        uniqueness...</p>
      <p><br>
      </p>
      <p>However, when I use the "DITA > Insert > Insert New DITA
        Resource" command, oXygen does not honor the "ID Option"
        setting, but creates IDs which are identical to the file name. <br>
      </p>
      <p>This is not what I want and surely not suitable for ensuring
        uniqueness.</p>
      <p><br>
      </p>
      <p>How can I get oXygen to honor the "ID Option" setting or make
        it otherwise generate IDs with arbitrary characters which are
        likely to be unique?<br>
      </p>
      <p><br>
      </p>
      <p>Regards,</p>
      <p>Frank<br>
      </p>
      <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>