Applying LinkTextResolver for ditamaps
Posted: Fri Oct 13, 2023 12:49 am
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.
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.
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
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.
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.
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