Page 1 of 1

docbook 5 xlink -> fo -> pdf problem

Posted: Mon May 16, 2011 1:34 pm
by Ericounet
Hi,

(oxygen 12.1, linux/Debian)

here is a para I wrote with a word which is a link to an audio part:

<para>Click <link xlink:href="/home/eric/travail/Langues/FSI/lesson1.mp3"><emphasis role="bold">here</emphasis></link> to listen.</para>

The problem is that not only the word "here" is clickable, but I get also the URL surronded by [ ] and clickable too.

I tried with different FO xsl (1.72 version), and my link is fine.

I tried many tips like using the "endterm" attribut, but with no result.

I think, I miss something :(

Please, help me

Eric!
-----

Re: docbook 5 xlink -> fo -> pdf problem

Posted: Mon May 16, 2011 2:45 pm
by adrian
Hello,

I'm not sure when exactly was this introduced in DocBook XSL, but I see it was already there in 1.75.

You can disable this by setting a parameter in the transformation scenario. Edit the DocBook to PDF transformation scenario:
Document -> Transformation -> Configure Transformation Scenario, Edit, press the Parameters button and change the value of ulink.show to 0.
ulink.show
Display URLs after ulinks?

Description

If non-zero, the URL of each ulink will appear after the text of the link. If the text of the link and the URL are identical, the URL is suppressed.

See also ulink.footnotes.

DocBook 5 does not have an ulink element. When processing DocBoook 5 documents, ulink.show applies to all inline elements that are marked up with xlink:href attributes that point to external resources.
Regards,
Adrian

Re: docbook 5 xlink -> fo -> pdf problem

Posted: Mon May 16, 2011 3:16 pm
by Ericounet
Hi,

I found myself the solution (in XSLT debugging mode).

Thanks for the help.

What I think is missing is a mode which:

doesnt' display the link and does'nt display the footnote: only the clickable text (or image)

Thanks again,

Eric