Page 1 of 1
Sort glossgroup alphabetically
Posted: Thu Feb 25, 2021 10:23 pm
by daryl
Hi,
Is it possible to sort glossentrys by alphabetical order in a glossgroup?
Thanks
Re: Sort glossgroup alphabetically
Posted: Fri Feb 26, 2021 1:54 pm
by cosmin_andrei
Hello,
Unfortunately, this feature is not available in the current implementation of Oxygen XML WebHelp.
We have already registered a feature request. I have added your vote.
Re: Sort glossgroup alphabetically
Posted: Fri Feb 26, 2021 2:21 pm
by Radu
Hi,
Although this sorting is not possible automatically at publishing time there is a possibility to do something like this manually by applying an XML refactoring operation on the DITA Map:
https://blog.oxygenxml.com/topics/sort_ ... tries.html
Regards,
Radu
Re: Sort glossgroup alphabetically
Posted: Tue Mar 02, 2021 2:42 am
by daryl
I see. However, currently, I am using a <glossgroup> and <glossentry> to organize it into a list.
What are the key differences between using a glossgroup and a glossarylist?
Re: Sort glossgroup alphabetically
Posted: Tue Mar 02, 2021 10:17 am
by Radu
Hi,
So instead of keeping each glossentry to a separate file, you have a single glossgroup file with multiple glossentry elements inside? Similarly you need to probably create an XML refactoring action based on a custom XSLT stylesheet, but apply it directly on the glossgroup file to sort the glossentries. The XSLT in my blog post would need to be adjusted to work inside a glossgroup instead of working on a DITA Map and sorting references to glossentries.
Regards,
Radu
Re: Sort glossgroup alphabetically
Posted: Fri Mar 12, 2021 11:08 pm
by chrispitude
Hi Radu,
This is also how we create our glossaries - as a single .dita file containing a <glossgroup> with many entries.
The fun (?) part is that to be able to reference these glossary terms by key, we have to include key-defining <topicref>s for every term:
Code: Select all
<appendix href="ptug/glossary.dita" keys="glossary">
<topicref href="ptug/glossary.dita#active_edge" keys="glossary_active_edge"/>
<topicref href="ptug/glossary.dita#aggressor_net" keys="glossary_aggressor_net"/>
...
<topicref href="ptug/glossary.dita#CHDJFEFD" keys="glossary_voltage_area"/>
<topicref href="ptug/glossary.dita#wire_load_model" keys="glossary_wire_load_model"/>
</appendix>
but we have an External Tool we run in Oxygen that does this for us (a compiled Perl script), so it's not too terribly bad.