Hyperlink disappers in pdf output

Here should go questions about transforming XML with XSLT and FOP.
khcy82nvh
Posts: 17
Joined: Mon Oct 22, 2012 10:59 am

Hyperlink disappers in pdf output

Post by khcy82nvh » Thu Oct 25, 2012 6:44 am

Hi guys

I am using default Apache DITA-OT to generate PDF output from my .dita files.

But when PDF output is generated, all hyperlinks (created by <keyref> tag in dita files, I also defined their correspoding <keys> in .ditamap)disappear. For your information, this issue does not happen if Oxygen generates CHM or WEBHELP outputs.

Please help me this issue

Thanks

Regards,

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

Re: Hyperlink disappers in pdf output

Post by Radu » Thu Oct 25, 2012 9:19 am

Hi,

There is no <keyref> tag in DITA.
What DITA element are you using to reference the keys defined in the DITA Map? <xref>?
What version of Oxygen do you have? Are you using the DITA OT which comes bundled with it or a custom DITA OT?

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

khcy82nvh
Posts: 17
Joined: Mon Oct 22, 2012 10:59 am

Re: Hyperlink disappers in pdf output

Post by khcy82nvh » Thu Oct 25, 2012 9:55 am

I am using Oxygen 14.0

Below is a sample code:

In create_action.dita, I wrote:
<p>An action may be something elementary, such as <ph keyref="kbia_report" />..............
And in .ditamap, I defined the keys value:
<topicref navtitle="report" href="Topics/bia_report.dita" class="- map/topicref " type="reference" keys="kbia_report"/>
My purpose is to create a hyperlink for kbia_report.

This hyperlink appears and works well for chm and webhelp buidlds; however, in pdf build, the hyperlink disappers.

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

Re: Hyperlink disappers in pdf output

Post by Radu » Thu Oct 25, 2012 11:22 am

Hi,

I think that in this case the XHTML-type outputs are incorrect.
The link should be made using <xref keyref="kbia_report"/>. This works both in HTML and PDF.

This link explains things more clearly:

http://dita.xml.org/resource/dita-tc-faq-about-keys#Q2

Basically there are two types of DITA elements, elements which also accept @href as an attribute and these elements become links (like <xref/>) and elements which do not accept @href as an attribute (like <ph>) which only show the title of the referenced resource as plain text.
I may be wrong on this, you could also ask for clarifications on the DITA Users List.
The group of people who made the DITA standard are all members of the list.

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

khcy82nvh
Posts: 17
Joined: Mon Oct 22, 2012 10:59 am

Re: Hyperlink disappers in pdf output

Post by khcy82nvh » Thu Oct 25, 2012 1:52 pm

Hi,

I have made changes to <xref keyref="kbia_report"/>. And it really work very well on PDF output.

Thank you so much

Post Reply