abbreviated-form of the glossentry inside glossgroup

Post here questions and problems related to editing and publishing DITA content.
abacus66
Posts: 40
Joined: Wed May 25, 2016 10:45 am

abbreviated-form of the glossentry inside glossgroup

Post by abacus66 »

I use the following structure:

Code: Select all

<glossgroup id="ena">
...
<glossentry id="asd">
...
</glossentry>
</glossgroup>
Then I use <abbreviated-form keyref="ena/asd"/>. But nothing is shown in the output.
Best regards,
Dr. ABacus

#define QUESTION ((bb) || !(bb)) // © 1601 William Shakespeare
Radu
Posts: 9049
Joined: Fri Jul 09, 2004 5:18 pm

Re: abbreviated-form of the glossentry inside glossgroup

Post by Radu »

Hi,

In my opinion you cannot use "abbreviated-form" elements to refer to glossentry elements inside glossgroups.
Why this?
According to the specification:

https://docs.oasis-open.org/dita/v1.2/o ... ibute.html
the value of the keyref attribute is a key name, a solidus ("/"), and the ID of the target element, where the key name must be bound to either the map or topic that contains the target element.
so the ID which follows the keyName/ pattern needs to point to a subtopic element but "glossentry" is a topic level element.

The only way to make this work would be to refer in the DITA Map directly to the glossentry inside the glossgroup:

Code: Select all

<topicref href="topics/glossgroup.xml#asd" keys="asdRef"/>
and then to point to the key directly using

Code: Select all

<abbreviated-form keyref="asdRef"/>
.
But you would need to define a key for each topic reference to a glossentry inside a glossgroup.

Or you can keep your glossentry elements in separate files and chunk them together in a single file when producing the output.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
abacus66
Posts: 40
Joined: Wed May 25, 2016 10:45 am

Re: abbreviated-form of the glossentry inside glossgroup

Post by abacus66 »

Thanks a lot.
Best regards,
Dr. ABacus

#define QUESTION ((bb) || !(bb)) // © 1601 William Shakespeare
Post Reply