This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: [docbook-apps] pdf mailto links


I don't think the xsls support anything like that out of the box. You'd have to hack the ulink template in fo/xref.xsl to get it to do what you want. If I understand what you want to do correctly, something like this should work:
 
In fo/ulink.xsl, change:
 
  <xsl:if test="count(child::node()) != 0
                and string(.) != @url
                and $ulink.show != 0">
To:
 
  <xsl:if test="count(child::node()) != 0
                and string(.) != @url
                and $ulink.show != 0"
                and not(normalize-space(@role) = 'hideURL')">
<ulink role="hideURL" url="">Feedback</ulink>
 
That would result in Feedback being hot, but no indication of what the link is to.
 
Instead you could have the xsl test for "mailto:" in the url--whatever suits you.
 
For a complete guide on creating and maintaining a customization layer, see http://www.sagehill.net/docbookxsl/index.html
 
David
-----Original Message-----
From: Geoffrey [mailto:jcs_gde_lists@hotmail.com]
Sent: Wednesday, February 25, 2004 9:15 AM
To: _MailingList docbook-apps
Subject: Re: [docbook-apps] pdf mailto links

Actually it also contains the subject:
<ulink url="" href="mailto:user@mymail.org">mailto:user@mymail.org?Subject=book>Feedback</ulink>
Is it possible to contain all 3 parts:
- the address: user@mymail.org
- the subject: book
- the text for the link: Feedback
 
I don't see any attributes on the email entity to do that.
 
Thank you for any and all help,
Geoffrey
----- Original Message -----
Sent: Wednesday, February 25, 2004 4:03 PM
Subject: RE: [docbook-apps] pdf mailto links

Use <email>user@mymail.org</email>
 
 
David
-----Original Message-----
From: Geoffrey [mailto:jcs_gde_lists@hotmail.com]
Sent: Wednesday, February 25, 2004 7:16 AM
To: _MailingList docbook-apps
Subject: [docbook-apps] pdf mailto links

Hi all,
 
I am using docbook to generate fo which generates pdf.
We have 3 kind of links:
1) <ulink url=""/'>http://mylink.org"/>
2) <ulink url="">My'>http://mylink.org">My link text</ulink>
3) <ulink url="" href="mailto:user@mymail.org">mailto:user@mymail.org>Feedback</ulink>
 
They are generated in the pdf clickable:
2) My link text[http://mylink.org]
 
The first 2 are as I like, but the last one isn't:
It should just say Feedback without [mailto:user@mymail.org] or the ulink element doesn't actually have to be there, as it serves no purpose in the printed version.
 
Is there an attribute or command line argument which can do this?
 
Thank you for any and all help,
Geoffrey

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]