insertElements does nothing?
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 49
- Joined: Mon Mar 12, 2007 1:56 am
- Location: Sweden
insertElements does nothing?
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
-
- Posts: 1016
- Joined: Wed Nov 16, 2005 11:11 am
Re: insertElements does nothing?
Post by alex_jitianu »
Hello,
Thank you for reporting this issue. I managed to reproduce it myself and I've recorded an issue. We will let you know as soon as we release a fix for it.
The easiest alternative, if you are working in author mode, is to create an author action that inserts a list-item with the required structure and then replace the default list item entry in the content completion tab.
If you want this behavior also in the text mode, then you can implement an SchemaManagerFilter. If you want to go on this path, please let me know and I will give a little more details on how to do what you want.
Best regards,
Alex
Thank you for reporting this issue. I managed to reproduce it myself and I've recorded an issue. We will let you know as soon as we release a fix for it.
The easiest alternative, if you are working in author mode, is to create an author action that inserts a list-item with the required structure and then replace the default list item entry in the content completion tab.
If you want this behavior also in the text mode, then you can implement an SchemaManagerFilter. If you want to go on this path, please let me know and I will give a little more details on how to do what you want.
Best regards,
Alex
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service