Adding comments and processing instructions
Are you missing a feature? Request its implementation here.
-
- Posts: 1
- Joined: Sat Jul 02, 2022 2:15 am
Adding comments and processing instructions
In the desktop author, pressing return opens a menu that contains options to add XML comments and processing instructions as well as elements.
In the web author the menu does not contain these options. Is there a way to enable them in web author?
In the web author the menu does not contain these options. Is there a way to enable them in web author?
-
- Site Admin
- Posts: 95
- Joined: Thu Jun 09, 2016 2:01 pm
Re: Adding comments and processing instructions
Post by Gabriel Titerlea »
Hello,
Indeed, the Comment and Processing Instructions actions are not present in Oxygen XML Web Author.
I've registered an internal ticket to fix this, and we'll update this forum post when we have a solution.
As a workaround you can extend the DITA framework using a framework extension script [1].
You can implement an "Insert Processing Instruction" and an "Insert XML comment" action. And add them to the content-completion menu [2] yourself.
To implement the above actions you can define an action that uses the InsertFragmentOperation to insert these fragments:
- "<!-- -->"
- "<?PITarget PIContent?>"
Best,
Gabriel
[1] https://www.oxygenxml.com/doc/versions/ ... zt_5ry_jnb
[2] https://www.oxygenxml.com/doc/versions/ ... gh_yzm_knb
Indeed, the Comment and Processing Instructions actions are not present in Oxygen XML Web Author.
I've registered an internal ticket to fix this, and we'll update this forum post when we have a solution.
As a workaround you can extend the DITA framework using a framework extension script [1].
You can implement an "Insert Processing Instruction" and an "Insert XML comment" action. And add them to the content-completion menu [2] yourself.
To implement the above actions you can define an action that uses the InsertFragmentOperation to insert these fragments:
- "<!-- -->"
- "<?PITarget PIContent?>"
Best,
Gabriel
[1] https://www.oxygenxml.com/doc/versions/ ... zt_5ry_jnb
[2] https://www.oxygenxml.com/doc/versions/ ... gh_yzm_knb
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 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