Next in thread → Next in month →

RE: [docbook-apps] pdf mailto links

From
David Cramer (Tech Pubs) <>
Date
2004-02-25T19:59:37+00:00
ID
Thread
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="mailto:?Subject=book">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="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
Next in thread → Next in month →