Sort glossgroup alphabetically

daryl
Posts: 7
Joined: Thu Feb 11, 2021 9:22 pm

Sort glossgroup alphabetically

Post by daryl » Thu Feb 25, 2021 10:23 pm

Hi,

Is it possible to sort glossentrys by alphabetical order in a glossgroup?


Thanks

cosmin_andrei
Posts: 71
Joined: Mon Jun 12, 2017 10:50 am

Re: Sort glossgroup alphabetically

Post by cosmin_andrei » Fri Feb 26, 2021 1:54 pm

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.
Regards,
Cosmin
--
Cosmin Andrei
oXygen XML Editor and Author Support

Radu
Posts: 7428
Joined: Fri Jul 09, 2004 5:18 pm

Re: Sort glossgroup alphabetically

Post by Radu » Fri Feb 26, 2021 2:21 pm

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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

daryl
Posts: 7
Joined: Thu Feb 11, 2021 9:22 pm

Re: Sort glossgroup alphabetically

Post by daryl » Tue Mar 02, 2021 2:42 am

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?

Radu
Posts: 7428
Joined: Fri Jul 09, 2004 5:18 pm

Re: Sort glossgroup alphabetically

Post by Radu » Tue Mar 02, 2021 10:17 am

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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

chrispitude
Posts: 322
Joined: Thu May 02, 2019 2:32 pm

Re: Sort glossgroup alphabetically

Post by chrispitude » Fri Mar 12, 2021 11:08 pm

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.

Post Reply