Author mode - Draft comment displayed in xref text resolution

Post here questions and problems related to editing and publishing DITA content.
NicoAMP
Posts: 98
Joined: Tue Mar 06, 2018 2:07 pm
Contact:

Author mode - Draft comment displayed in xref text resolution

Post 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.
Nicolas Delobel
AmeXio
nicolas.delobel at amexiogroup.com
Radu
Posts: 9438
Joined: Fri Jul 09, 2004 5:18 pm

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

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Radu
Posts: 9438
Joined: Fri Jul 09, 2004 5:18 pm

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

Post by Radu »

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