cc_config.xml automatic element insertion no longer works for <note> elements
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 753
- Joined: Thu May 02, 2019 2:32 pm
cc_config.xml automatic element insertion no longer works for <note> elements
Post by chrispitude »
For elements that allow both block elements and plaintext (such as <note> and <li>), we try to avoid plaintext. So in our cc_config_ext.xml file, we have entries like this:
We noticed that auto-insertion for <note> elements worked in v24.1 but stopped working in v25.0.
Testcase here:
I see that v25.0 uses a note action like this:
I guess I could modify or override this action to insert a <p> in the XML fragment. But before I do that, is there some better way I should resolve this? Or could I request an enhancement for insertion actions to also consider content completion entries, at the fragment's caret position or by some other heuristic?
It would be nice to have both the power of custom actions and the simplicity and central configurability of the content completion files.
Thanks!
Code: Select all
<elementProposals path="dd" insertElements="p"/>
<elementProposals path="li" insertElements="p"/>
<elementProposals path="note" insertElements="p"/>
Testcase here:
- oxygen_note_content_completion.zip
- (17.04 KiB) Downloaded 8 times
I see that v25.0 uses a note action like this:
- image.png (45.7 KiB) Viewed 235 times
I guess I could modify or override this action to insert a <p> in the XML fragment. But before I do that, is there some better way I should resolve this? Or could I request an enhancement for insertion actions to also consider content completion entries, at the fragment's caret position or by some other heuristic?
It would be nice to have both the power of custom actions and the simplicity and central configurability of the content completion files.
Thanks!
-
- Posts: 962
- Joined: Wed Nov 16, 2005 11:11 am
Re: cc_config.xml automatic element insertion no longer works for <note> elements
Post by alex_jitianu »
Hi Chris,
I see that you've also found the culprit... Right now, the only solution is to edit the action's inserted fragment and put the 'p' element in it. I will record a feature request to automatically consider required elements, either those provided from the schema or from the content completion entries.
Best regards,
Alex
I see that you've also found the culprit... Right now, the only solution is to edit the action's inserted fragment and put the 'p' element in it. I will record a feature request to automatically consider required elements, either those provided from the schema or from the content completion entries.
Best regards,
Alex
-
- Posts: 753
- Joined: Thu May 02, 2019 2:32 pm
Re: cc_config.xml automatic element insertion no longer works for <note> elements
Post by chrispitude »
Thanks Alex! I will modify our action for now.
Can you let me know the issue ID for the enhancement to consider element insertion proposals in action-inserted fragments?
Can you let me know the issue ID for the enhancement to consider element insertion proposals in action-inserted fragments?
-
- Posts: 962
- Joined: Wed Nov 16, 2005 11:11 am
Re: cc_config.xml automatic element insertion no longer works for <note> elements
Post by alex_jitianu »
Hi,
The issue ID is EXM-52392 (Add missing required elements inside fragments inserted by author actions)
Best regards,
Alex
The issue ID is EXM-52392 (Add missing required elements inside fragments inserted by author actions)
Best regards,
Alex
Return to “DITA (Editing and Publishing DITA Content)”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ 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 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