Applying LinkTextResolver for ditamaps
Post here questions and problems related to oXygen frameworks/document types.
-
- Posts: 17
- Joined: Tue Sep 05, 2023 12:14 am
Applying LinkTextResolver for ditamaps
Hi Team,
We are extending LinkTextResolver to resolve references to custom text in Editor (for both ditamaps and topics)
We are following this guide: https://www.oxygenxml.com/doc/versions/ ... -text.html
This is the css file that we are using.
In case of dita topics, it is replacing the default text with the resolved text in link element (xref in this case).
Please check screenshot Topic_with_resolved_xref.png where we resolved xref in topic with LinkTextResolver.
Please check screenshot Map_with_resolved_topicref.png where we resolved topicref in ditamap with LinkTextResolver.
We request you to suggest solution to replace link text with the resolved text for ditamaps.
Thanks & Regards,
Abhi_K
We are extending LinkTextResolver to resolve references to custom text in Editor (for both ditamaps and topics)
We are following this guide: https://www.oxygenxml.com/doc/versions/ ... -text.html
This is the css file that we are using.
Code: Select all
xref, topicref {
content: oxy_link-text();
}
Please check screenshot Topic_with_resolved_xref.png where we resolved xref in topic with LinkTextResolver.
Topic_with_resolved_xref.png
But in case of ditamaps, it is appending resolved text next to the link element (topicref in this case).Please check screenshot Map_with_resolved_topicref.png where we resolved topicref in ditamap with LinkTextResolver.
Map_with_resolved_topicref.png
Similar to dita topics, we want to replace link text in ditamaps with the resolved text.We request you to suggest solution to replace link text with the resolved text for ditamaps.
Thanks & Regards,
Abhi_K
You do not have the required permissions to view the files attached to this post.
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Applying LinkTextResolver for ditamaps
Hi,
If you right click inside a topicref in the Author visual editing mode you can use the "Inspect Styles" action to show the "CSS Inspector" view.
https://www.oxygenxml.com/doc/versions/ ... -view.html
Using the CSS inspector view you have tabs for each before/after level on which there were CSS styles added. And for each level you can navigate to the CSS selector.
For example in the CSS Oxygen XML Editor/frameworks/dita/css/core/-map-basic.css you have this default selector:
which displays the href attribute value and which you can override in your custom CSS to set an empty content to the same selector and avoid showing the href attribute value.
Regards,
Radu
If you right click inside a topicref in the Author visual editing mode you can use the "Inspect Styles" action to show the "CSS Inspector" view.
https://www.oxygenxml.com/doc/versions/ ... -view.html
Using the CSS inspector view you have tabs for each before/after level on which there were CSS styles added. And for each level you can navigate to the CSS selector.
For example in the CSS Oxygen XML Editor/frameworks/dita/css/core/-map-basic.css you have this default selector:
Code: Select all
*[class~="map/topicref"][href]:before(1020) {
content: oxy_unescapeURLValue(attr(href)) " ";
}
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