Controlling @id generation when inserting elements in Author mode

Post here questions and problems related to editing and publishing DITA content.
tmakita
Posts: 116
Joined: Fri Apr 08, 2011 7:58 am

Controlling @id generation when inserting elements in Author mode

Post 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?
--
/*--------------------------------------------------
Toshihiko Makita
Development Group. Antenna House, Inc. Ina Branch
Web site:
http://www.antenna.co.jp/
http://www.antennahouse.com/
--------------------------------------------------*/
Radu
Posts: 9431
Joined: Fri Jul 09, 2004 5:18 pm

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

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
tmakita
Posts: 116
Joined: Fri Apr 08, 2011 7:58 am

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

Post by tmakita »

Thank you Radu!
I will customize it in my framework.
--
/*--------------------------------------------------
Toshihiko Makita
Development Group. Antenna House, Inc. Ina Branch
Web site:
http://www.antenna.co.jp/
http://www.antennahouse.com/
--------------------------------------------------*/
Post Reply