Author mode - Draft comment displayed in xref text resolution

NicoAMP
Posts: 26
Joined: Tue Mar 06, 2018 2:07 pm

Author mode - Draft comment displayed in xref text resolution

Post by NicoAMP » 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: 6329
Joined: Fri Jul 09, 2004 5:18 pm

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

Post by Radu » 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

Radu
Posts: 6329
Joined: Fri Jul 09, 2004 5:18 pm

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

Post by Radu » Thu May 23, 2019 2:25 pm

Hi,

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

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

Post Reply