<KG/>
Published on

How to automatically generate ID's for elements in oXygen XML Editor

Authors

There are multiple ways to automatically generate ID's for elements when they are inserted in oXygen XML Editor.

Using idGenerationDefaultOptions.xml :

idGenerationDefaultOptions.xml which is found in the ${oxygenInstallDir}\frameworks\dita\resources directory and keeps only the default elements for which you need IDs to be generated. You can edit this file and additional elements for which you want to add ID.

idGenerationdefault

Using ID Options:

Using ID options dialog box we can configure list of elements to generate ids automatically. ID Options dialog box can be found on $(frameworkMenuItem)>ID Options

idoptions

PS: The changes made using ID Options dialog will override the elements list configured in idGenerationDefaultOptions.xml file.

Programatic way:

Following is the api to generate id for elements

PluginWorkspaceProvider.getPluginWorkSpace().getUtilAccess().expandEditorVariables("${id}",null);

Share

Khalil

Khalil Ganiga

Just another programmer.. This blog expresses my views of various technologies and scenarios I have come across in realtime.

Keep watching this space for more updates.