docbook 5 xlink -> fo -> pdf problem

Here should go questions about transforming XML with XSLT and FOP.
Ericounet
Posts: 8
Joined: Thu Dec 09, 2010 12:32 pm

docbook 5 xlink -> fo -> pdf problem

Post 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!
-----
adrian
Posts: 2879
Joined: Tue May 17, 2005 4:01 pm

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

Post 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
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Ericounet
Posts: 8
Joined: Thu Dec 09, 2010 12:32 pm

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

Post 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
Post Reply