Specify the root map via custom plugin

Are you missing a feature? Request it's implementation here.
Lemesany
Posts: 19
Joined: Wed Jan 25, 2017 11:21 pm

Specify the root map via custom plugin

Post by Lemesany » Wed May 13, 2020 2:22 am

Hi! I'm using a custom plugin that pulls in Oxygen options via the option.xml file in a plugin.jar , and distribute that out to many writers.
I tried setting my root map to the default "main" map I use for keys, and exporting my options to save that and distribute to writers, but I'm not seeing any additional entry in the options.xml file that saves such option. Is this an existing an option I can add to my options.xml file to default to a specific root map in the Dita Maps Manager?

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

Re: Specify the root map via custom plugin

Post by Radu » Wed May 13, 2020 8:13 am

Hi,

Unfortunately the root map setting is not saved in the global settings, it is saved in the project.xpr file.
So you cannot import a global XML settings file and impose the root map. Also the root map location needs to be an absolute URL-like absolute path which would not be portable.
For now you can use our Java code to force impose the root map URL after the application has started:

post57170.html

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

Post Reply