Page 1 of 1
abbreviated-form of the glossentry inside glossgroup
Posted: Wed May 25, 2016 11:11 am
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.
Re: abbreviated-form of the glossentry inside glossgroup
Posted: Wed May 25, 2016 11:23 am
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
Re: abbreviated-form of the glossentry inside glossgroup
Posted: Thu May 26, 2016 9:15 am
by abacus66
Thanks a lot.