Page 1 of 1

Author mode - Draft comment displayed in xref text resolution

Posted: Thu Feb 21, 2019 7:17 pm
by NicoAMP
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.

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

Posted: Fri Feb 22, 2019 9:21 am
by Radu
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

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

Posted: Thu May 23, 2019 2:25 pm
by Radu
Hi,

We released Oxygen 21.1 and it should have a fix for the problem you reported.

Regards,
Radu