Class extending from DITASchemaManagerFilter does not work properly
Post here questions and problems related to oXygen frameworks/document types.
Class extending from DITASchemaManagerFilter does not work properly
Hi oXygen xml team.
I have an issue when I try to customize the standard auto-completion of oXygen in author mode. I have a class extending from DITASchemaManagerFilter and I am modifying the method filterElements(). In this method there is a new condition when the element is a note, then, I automatically add a child <p>
Unfortunately, it seems I am in the wrong method, my code does work in Text mode, but does not in Author mode. I notice that if I add the first note, the code does not add the paragraph but if I add a new note next to the first one, it works.
Does not work:
Works:
I suppose there is a different context so my changes must be made in another place but a I do not have a clue where those should be
I have an issue when I try to customize the standard auto-completion of oXygen in author mode. I have a class extending from DITASchemaManagerFilter and I am modifying the method filterElements(). In this method there is a new condition when the element is a note, then, I automatically add a child <p>
Unfortunately, it seems I am in the wrong method, my code does work in Text mode, but does not in Author mode. I notice that if I add the first note, the code does not add the paragraph but if I add a new note next to the first one, it works.
Does not work:
- image.png (29.5 KiB) Viewed 788 times
- image.png (22.09 KiB) Viewed 788 times
- Attachments
-
- image.png (29.5 KiB) Viewed 788 times
Re: Class extending from DITASchemaManagerFilter does not work properly
Hi,
That <note> entry in the content completion window is "special", it does not come from the schema content completion, it is an Author action which is inserted in the content completion window and replaces the regular "note" entry.
If in the Oxygen Preferences->"Document Type Association" page you edit your DITA framework extension, in the "Author->Content completion" tab there is a "Current actions" list containing the "note" action. So this replacement of the initial <note> content completion item with the "insert.note" action is at a higher level and that's why your code no longer has effect.
As possible workarounds either:
- Remove the "note" action from the "Current actions" list.
or:
- Edit the "insert.note" action in the "Author->Actions" list and change its definition to include the paragraph inside the <note> element.
Regards,
Radu
That <note> entry in the content completion window is "special", it does not come from the schema content completion, it is an Author action which is inserted in the content completion window and replaces the regular "note" entry.
If in the Oxygen Preferences->"Document Type Association" page you edit your DITA framework extension, in the "Author->Content completion" tab there is a "Current actions" list containing the "note" action. So this replacement of the initial <note> content completion item with the "insert.note" action is at a higher level and that's why your code no longer has effect.
As possible workarounds either:
- Remove the "note" action from the "Current actions" list.
or:
- Edit the "insert.note" action in the "Author->Actions" list and change its definition to include the paragraph inside the <note> element.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Return to “SDK-API, Frameworks - Document Types”
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