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


Oops...left out a line, make that:
 
  <xsl:if test="count(child::node()) != 0
                and string(.) != @url
                and $ulink.show != 0"
                and not(normalize-space(@role) = 'hideURL')">
 
And then put the following in your document:

<ulink role="hideURL" url="">Feedback</ulink>
-----Original Message-----
From: David Cramer (Tech Pubs)
Sent: Wednesday, February 25, 2004 2:08 PM
To: Geoffrey; _MailingList docbook-apps
Subject: 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
 

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