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="mailto:?Subject=book">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:]
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=mailto:?Subject=book>Feedback</ulink>
Is it possible to contain all 3
parts:
- the address:
- 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 -----
From:
David Cramer
(Tech Pubs)
To: Geoffrey ; _MailingList
docbook-apps
Sent: Wednesday, February 25, 2004 4:03
PM
Subject: RE: [docbook-apps] pdf mailto
links
Use
<email></email>
http://docbook.org/tdg/en/html/email.html
David
-----Original Message-----
From: Geoffrey
[mailto:]
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=mailto:>Feedback</ulink>
They are generated in the pdf clickable:
1) http://mylink.org
2) My link text[http://mylink.org]
3) Feedback[mailto:]
The first 2 are as I like, but the last one
isn't:
It should just say Feedback without [mailto:] 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