insertElements does nothing?
Posted: Wed Apr 17, 2019 10:29 am
Hi,
I'm trying to customise an authoring environment to always insert a <text> element when a (parent) <list-item> is inserted by adding the following to my framework's cc_config.xml:
<elementProposals path="kgp:list-item" insertElements="kgp:text" xmlns:kgp="http://ns.karnovgroup.com/kg-pp"/>
In other words, I always want this when inserting a <list-item>:
The DTD allows this (<kgp:text> is in %block.content;):
The config file is recognised and used, as other customisations, such as removing some proposed attributes and renaming elements, work as expected. But no matter how I do this - I've tried a number of variations, with and without namespaces, other paths, etc - I can't make this work. What am I doing wrong? Any ideas would be greatly appreciated.
My oXygen version is 21, build 2019040204, and I'm running it on Ubuntu Linux. Looking at the documentation (https://www.oxygenxml.com/doc/versions/ ... ually.html), this particular procedure appears to be for 19.1, but I assume it's still the same?
Many thanks,
/Ari
I'm trying to customise an authoring environment to always insert a <text> element when a (parent) <list-item> is inserted by adding the following to my framework's cc_config.xml:
<elementProposals path="kgp:list-item" insertElements="kgp:text" xmlns:kgp="http://ns.karnovgroup.com/kg-pp"/>
In other words, I always want this when inserting a <list-item>:
Code: Select all
<kgp:list-item>
<kgp:text/>
<kgp:list-item>
Code: Select all
<!ELEMENT kgp:list-item (%block.content; | kgp:references | xi:include)+ >
My oXygen version is 21, build 2019040204, and I'm running it on Ubuntu Linux. Looking at the documentation (https://www.oxygenxml.com/doc/versions/ ... ually.html), this particular procedure appears to be for 19.1, but I assume it's still the same?
Many thanks,
/Ari