Author mode - Draft comment displayed in xref text resolution

NicoAMP
Posts: 23

Author mode - Draft comment displayed in xref text resolution

Thu Feb 21, 2019 7:17 pm

Hello,

I have the following dita XML:

Code: Select all

<table id="a001">
<title><draft-comment>My draft comment</draft-comment>My table</title>
...
</table>
...
<p>Refer to: <xref href="#a001" format="dita"/>.</p>


I author mode "Refer to: My draft commentMy Table" is displayed at xref location : the draft comment is displayed.

How can I hide draft comment in xref text resolution?
I think that is in oxy_link-text() function (called in CSS) that I have to do modification. Is it possible to change oxy_link-text() behavior?

Thanks.
Radu
Posts: 6046

Re: Author mode - Draft comment displayed in xref text resolution

Fri Feb 22, 2019 9:21 am

Hi Nico,

I added an internal issue to fix this problem in a future Oxygen version.

About somehow fixing this problem yourself, our Oxygen Author SDK is Java based and freely available, there is a "DITALinkTextResolver" API class which computes the link target texts and which could be modified and re-compiled. But it's quite hard word because right now the "DITALinkTextResolver" delegates to non-API code to resolve titles so you would need to do the title resolutions yourself, parse the target topics. It's doable but not easy. If you want this approach I could try to provide you with more details.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

Return to “DITA (Editing and Publishing DITA Content)”

Who is online

Users browsing this forum: No registered users and 3 guests