Auto Generation of Element IDs does not work for Nested elem

Post here questions and problems related to editing and publishing DITA content.
SunNadimpalli01
Posts: 9
Joined: Thu Mar 05, 2015 11:53 am
Location: Bengaluru, India
Contact:

Auto Generation of Element IDs does not work for Nested elem

Post by SunNadimpalli01 »

Hi Folks,

I have a UIControl element nested inside a Paragraph element. When I use the Generate IDs option at the topic level, only the top level Paragraph element gets an ID. The nested UIControl element does get the ID automatically. I need to right click on each of the UIControl elements and use the Generate ID option.

Have you seen this behavior? Is there any thing that I can do to automatically generate IDs for all elements nested or not.

Regards,
Sundar
_____________________________________________
Sundar Nadimpalli
<http://www.sundarnadimpalli.com/>
Radu
Posts: 9041
Joined: Fri Jul 09, 2004 5:18 pm

Re: Auto Generation of Element IDs does not work for Nested

Post by Radu »

Hi Sundar,

In the main DITA menu there is an action called ID Options....
You can configure there the names or class values for elements for which IDs will be auto-generated, either when the elements are created or when you generate IDs on a larger selection in which the elements in the list are present.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
SunNadimpalli01
Posts: 9
Joined: Thu Mar 05, 2015 11:53 am
Location: Bengaluru, India
Contact:

Re: Auto Generation of Element IDs does not work for Nested

Post by SunNadimpalli01 »

Hi Radu,

Thanks for your reply. My usecase is something like this. I have a uicontrol element inside a paragraph element.

Code: Select all

<p><uicontrol>Subcase</uicontrol></p>
When I say Generate IDs from the menu DITA -> Generate IDs.
The uicontrol element does not automatically get an ID. I need to manually Right+Click on the uicontrol element and click Generate IDs.

In the ID Options dialog I have selected the option - Auto generate IDs for elements.

My expectation from the menu DITA -> Generate IDs is that it automatically assigns an ID to all elements in a topic.

Regards,
Sundar
_____________________________________________
Sundar Nadimpalli
<http://www.sundarnadimpalli.com/>
Radu
Posts: 9041
Joined: Fri Jul 09, 2004 5:18 pm

Re: Auto Generation of Element IDs does not work for Nested

Post by Radu »

Hi Sundar,

The ID options dialog has a list of elements.
When generating IDs on a selection only for the elements in the list the IDs will be generated.
So you can add uicontrol to that list and repeat the generation.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
SunNadimpalli01
Posts: 9
Joined: Thu Mar 05, 2015 11:53 am
Location: Bengaluru, India
Contact:

Re: Auto Generation of Element IDs does not work for Nested

Post by SunNadimpalli01 »

Hello Radu,

Thank you very much, I tried what you suggested and now the IDs are automatically generated for all uicontrol elements in my topic when I click the Generate IDs option at the topic level.


Best Regards,
Sundar
_____________________________________________
Sundar Nadimpalli
<http://www.sundarnadimpalli.com/>
Post Reply