Opening Dita map with deeply nested submaps
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 6
- Joined: Mon May 20, 2019 5:24 pm
Opening Dita map with deeply nested submaps
Hi,
We have created a plugin for Oxygen and in that, we are trying to open a DITA Map having deeply nested submaps and Oxygen opens the map in the editor only after all the deeply nested submaps have been resolved.
We actually want to open the map in the editor by resolving only the first level submaps (i.e display the contents of first level submaps only and not the content of deeply nested submaps) and resolve the further nested submaps upon expanding the first level submaps.
So, is there any API or configuration in Oxygen which will allow us to achieve this behavior?
Regards,
krishna
We have created a plugin for Oxygen and in that, we are trying to open a DITA Map having deeply nested submaps and Oxygen opens the map in the editor only after all the deeply nested submaps have been resolved.
We actually want to open the map in the editor by resolving only the first level submaps (i.e display the contents of first level submaps only and not the content of deeply nested submaps) and resolve the further nested submaps upon expanding the first level submaps.
So, is there any API or configuration in Oxygen which will allow us to achieve this behavior?
Regards,
krishna
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Opening Dita map with deeply nested submaps
Hi Krishna,
The DITA framework has a Java extension which performs these DITA Map map reference expansions in the Author visual editing mode.
In our Oxygen Maven-based Author SDK you should find the java sources for our "ro.sync.ecss.extensions.dita.map.topicref.DITAMapRefResolver" class and you would need to make changes to it to achieve what you want.
To do this, you would need to create a framework customization.
So in the Oxygen Preferences->"Document Type Association" page you would need to extend the "DITA Map" framework and save the extension somewhere on disk:
https://blog.oxygenxml.com/2015/08/docu ... aring.html
Then in your framework extension in the "Classpath" tab you would need to add a reference to an extra JAR library located in your framework extension folder and containing your own "my.custom.DITAMapRefResolver" implementation.
Then in the "Extensions" tab you would set the "References resolver" extension to refer to your implementation.
Once you have a "DITA Map" framework extension you can share it with others as an add-on. Or you can provide it from an Oxygen plugin:
https://www.oxygenxml.com/doc/versions/ ... nsion.html
Regards,
Radu
The DITA framework has a Java extension which performs these DITA Map map reference expansions in the Author visual editing mode.
In our Oxygen Maven-based Author SDK you should find the java sources for our "ro.sync.ecss.extensions.dita.map.topicref.DITAMapRefResolver" class and you would need to make changes to it to achieve what you want.
To do this, you would need to create a framework customization.
So in the Oxygen Preferences->"Document Type Association" page you would need to extend the "DITA Map" framework and save the extension somewhere on disk:
https://blog.oxygenxml.com/2015/08/docu ... aring.html
Then in your framework extension in the "Classpath" tab you would need to add a reference to an extra JAR library located in your framework extension folder and containing your own "my.custom.DITAMapRefResolver" implementation.
Then in the "Extensions" tab you would set the "References resolver" extension to refer to your implementation.
Once you have a "DITA Map" framework extension you can share it with others as an add-on. Or you can provide it from an Oxygen plugin:
https://www.oxygenxml.com/doc/versions/ ... nsion.html
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 417
- Joined: Mon May 09, 2016 9:37 am
Re: Opening Dita map with deeply nested submaps
Post by sorin_carbunaru »
Hello,
Just wanted to update this thread and let you know that in Oxygen 22.1 we added the Expand references to other maps when opening a map in Author mode option in the DITA preferences page. It can be deactivated for faster opening maps with a lot of submaps in the Author page. The option makes its effect when the map is reopened in the Author page.
Best wishes,
Sorin Carbunaru
oXygen XML
Just wanted to update this thread and let you know that in Oxygen 22.1 we added the Expand references to other maps when opening a map in Author mode option in the DITA preferences page. It can be deactivated for faster opening maps with a lot of submaps in the Author page. The option makes its effect when the map is reopened in the Author page.
Best wishes,
Sorin Carbunaru
oXygen XML
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 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