Re: [docbook-apps] Generating title for "link" element

From
Bob Stayton <>
Date
2010-12-08T19:09:06+00:00
ID
01ff01cb970b$53213230$6600a8c0@pazu
Thread
Re: [docbook-apps] Generating title for "link" element
X-NONE
  X-NONE
  
   
   
   
   
   
   
   
   
   
   
   
  
  MicrosoftInternetExplorer4
  
   
   
   
   
   
   
   
   
   
   
   
  

Hi Dave,

Do you mean a title attribute on the <a> 
element in the HTML?

 

Bob Stayton
Sagehill Enterprises


 

 

  
----- Original Message ----- 

  
From: 
  redlettucemail 

  
To:  
  

  
Sent: Wednesday, December 08, 2010 12:19 
  AM

  
Subject: [docbook-apps] Generating title 
  for "link" element

  

  

  
When 
  transforming XML to epub with Docbook 1.76 stylesheets, I need to generate a 
  title for internal links using the "link" element; for instance, when linking 
  from a citation in the text to its full reference in a reference list. The 
  standard stylesheets will generate "a href" in the resulting XHTML1-1 files, 
  but I need to also generate a title that is the same as the text within the 
  "link" element. I cannot specify a title as an xlink:title attribute of "link" 
  because it makes the XML invalid. So I need to develop the XSL code that 
  generates a title from the contents of "link" elements. Can someone suggest a 
  snippet of code please?
 

  

Dave 
  Gardiner