Sort function for DITA maps

Are you missing a feature? Request its implementation here.
susannecm
Posts: 107
Joined: Wed Mar 17, 2010 1:04 pm

Sort function for DITA maps

Post by susannecm »

In several cases, we have topics in certain parts of our DITA maps that are sorted alphabetically by the topic title. Examples include:
  • Glossary lists
  • Command line references
  • Reference information about specific object types
Our documentation is multilingual. After document translation (and after every update), we have to adopt the sort order manually. Could this be automated? I am thinking of a new command in the shortcut menu of the DITA maps manager.
Kind regards,
Susanne Muris
Radu
Posts: 8992
Joined: Fri Jul 09, 2004 5:18 pm

Re: Sort function for DITA maps

Post by Radu »

Hi Susanne,

So you want to select a couple of sibling topics in the DITA Map and then sort them in the same DITA Map depending on each topic title, right?
Interesting idea, I will add an internal issue to look into this.
Maybe as a workaround this could be done with an XML refactoring operation, if you can provide a sample DITA project to work with (support@oxygenxml.com) I could try to look into it and possibly try to create such an operation.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
susannecm
Posts: 107
Joined: Wed Mar 17, 2010 1:04 pm

Re: Sort function for DITA maps

Post by susannecm »

Hi Radu,
my idea was to select the parent topic, but it might actually be better (more flexible) to select the siblings.
I've prepared two sample maps (German and English version) and will now send them to support.
Thank you very much for your help
Susanne Muris
Radu
Posts: 8992
Joined: Fri Jul 09, 2004 5:18 pm

Re: Sort function for DITA maps

Post by Radu »

Hi Susanne,

Thanks for the samples. I blogged here about how an Oxygen XML Refactor operation which sorts a <glossarylist> could be constructed:

http://blog.oxygenxml.com/2018/01/sorti ... okmap.html

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Miriam2
Posts: 7
Joined: Thu Jan 25, 2018 9:58 pm

Re: Sort function for DITA maps

Post by Miriam2 »

Hi Radu,

I wanted to add a note to thank you for developing this and writing it up on your blog. I made a few minor tweaks to use this for a glossgroup-based Glossary, and so far it's working perfectly.
Radu
Posts: 8992
Joined: Fri Jul 09, 2004 5:18 pm

Re: Sort function for DITA maps

Post by Radu »

Hi,

Thanks for the kind words.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply