Page 1 of 1

Sort function for DITA maps

Posted: Thu Dec 14, 2017 9:35 pm
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

Re: Sort function for DITA maps

Posted: Fri Dec 15, 2017 11:31 am
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

Re: Sort function for DITA maps

Posted: Thu Dec 21, 2017 4:27 pm
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

Re: Sort function for DITA maps

Posted: Wed Jan 03, 2018 3:48 pm
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/sorting-glossary-lists-in-dita-bookmap.html

Regards,
Radu