Page 1 of 1

Controlling @id generation when inserting elements in Author mode

Posted: Wed Apr 23, 2025 1:28 pm
by tmakita
Here is request from one of my users.
When I insert note element in Author mode, Oxygen automatically generates following.

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE concept PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd">
<concept id="concept_q4w_3tg_cfc">
    <title>Sample Concept</title>
    <shortdesc></shortdesc>
    <conbody>
        <p>paragraph</p>
        <note id="note_j2r_ktg_cfc">note text</note>
    </conbody>
</concept>
We want control @id generation for any elements because several elements are not referenced from xref element.
How we can do it in Oxygen customization?

Re: Controlling @id generation when inserting elements in Author mode

Posted: Wed Apr 23, 2025 2:11 pm
by Radu
Hi Toshihiko,

When working with a DITA topic opened in the main editor in the Author visual editing mode the main menu "DITA->ID Options" dialog contains a list of elements for which IDs are auto generated.
There is an "OXYGEN_INSTALL_DIR/frameworks/dita/resources/idGenerationDefaultOptions.xml" file containing the defaults for ID generation and it can be overwritten from a DITA framework extension:
https://www.oxygenxml.com/doc/versions/ ... on_options

Regards,
Radu

Re: Controlling @id generation when inserting elements in Author mode

Posted: Wed Apr 23, 2025 2:28 pm
by tmakita
Thank you Radu!
I will customize it in my framework.