issue(possible bug) with XML templates and custom ID editor variable
Posted: Fri Mar 22, 2019 11:13 am
Hello,
we are using a framework template and a plugin (based on https://github.com/oxygenxml/wsaccess-j ... rVariables) to inject a custom server provided ID into the xml:id attribute of the root element when a new document is created. This works perfectly fine when creating a file using the menu "File/New..." but does not work as expected when I create a file via "right-click/New File" from within the data source explorer. In that case the filename ("untitled.xml" per default) overwrites the customID so I end up with xml:id="untitled" instead of my ID.
I narrowed down the issue to the option "Use the file name as the value of the root ID attribute" in "Preferences/DITA/New Topics". When I deactivate this option, the problem is resolved. Is this a bug? An option in the DITA settings should not influence the behaviour of generating XML files should it?. Automatically injecting the filename into the id attribute seems a strange default option. (tested this behaviour on version 20 and 21 of XML Editor)
Is there a way to deactivate this option for all users of my framework/plugin or would I have to ask them to do so manually ?
we are using a framework template and a plugin (based on https://github.com/oxygenxml/wsaccess-j ... rVariables) to inject a custom server provided ID into the xml:id attribute of the root element when a new document is created. This works perfectly fine when creating a file using the menu "File/New..." but does not work as expected when I create a file via "right-click/New File" from within the data source explorer. In that case the filename ("untitled.xml" per default) overwrites the customID so I end up with xml:id="untitled" instead of my ID.
I narrowed down the issue to the option "Use the file name as the value of the root ID attribute" in "Preferences/DITA/New Topics". When I deactivate this option, the problem is resolved. Is this a bug? An option in the DITA settings should not influence the behaviour of generating XML files should it?. Automatically injecting the filename into the id attribute seems a strange default option. (tested this behaviour on version 20 and 21 of XML Editor)
Is there a way to deactivate this option for all users of my framework/plugin or would I have to ask them to do so manually ?