Next in thread → Next in month →

Re: [docbook-apps] Unwanted target attribute in a href...

From
Bob Stayton <>
Date
2011-10-14T23:01:11+00:00
ID
01a701cc8ac4$2ff6fa80$6400a8c0@pazu
Thread
Re: [docbook-apps] Unwanted target attribute in a href...
Hi Kathleen,

I think you will need to be a little more specific 
about the version of the stylesheets.  You mentioned "a few years 
ago".  Can you determine the version of the stylesheets you are 
using?  There is a VERSION file in the distribution directory.

 

Bob Stayton
Sagehill Enterprises


 

 

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

  
From: 
  K. Mattson - Miller & Mattson 
  

  
To:  
  

  
Sent: Friday, October 14, 2011 3:11 
  PM

  
Subject: [docbook-apps] Unwanted target 
  attribute in a href...

  

  

  
Hi all.  Long 
  time listener, first time caller...

  
 

  
I developed an online reference system for a programming 
  language which is in a pretty typical frameset: table of contents in a narrow 
  frame on the left side and the reference pages all in the large frame on the 
  right. It?s written to DocBook 4.3 DTD using Norm 
  Walsh?s style sheets from a few years ago.

  
 

  
The problem is that when I use the <link> tag to link 
  type names within the <funcsynopsis>, the 
  resulting HTML has an unwanted target attribute to ?_top? which of course 
  blows it out of the frame. Any thoughts on how to make it stop adding that 
  target attribute? 

  
 

  
(Sample code below)

  
 

  
Thanks!

  
Kathleen

  
 

  
THIS XML:

  
 

  
<refsynopsisdiv xmlns:xlink="http://www.w3.org/1999/xlink"><title></title>

  
        
  <funcsynopsis>

  
            
  <funcprototype>

  
                
  <funcdef>

  
                    
  <link xlink:href="scalarDataTypes.html">short</link>

  
                    
  <function>

  
                        
  upsample

  
                    
  </function>

  
                
  </funcdef>

  
                
  <paramdef><link 
  xlink:href="">char</link><parameter>hi</parameter></paramdef>

  
                
  <paramdef><link 
  xlink:href="">uchar</link><parameter>lo</parameter></paramdef>

  
            
  </funcprototype>

  
        
  </funcsynopsis>

  
</refsynopsisdiv>

  
 

  
 

  
RESULTS IN THIS HTML

  
 

  
<div class="refsynopsisdiv">

  
        
  <h2></h2>

  
        
  <div class="funcsynopsis">

  
          
  <table xmlns="" border="0" 
  summary="Function synopsis" cellspacing="0" cellpadding="0">

  
            
  <tr valign="bottom">

  
              
  <td>

  
                
  <code xmlns="http://www.w3.org/1999/xhtml" 
  class="funcdef">

  
                    
  <a class="link" href="scalarDataTypes.html" 
  target="_top">short</a>

  
                 
     <b 
  class="fsfunc">

  
                        
  upsample

  
                    
  </b>

  
                
  (</code>

  
                
  <td><a xmlns="http://www.w3.org/1999/xhtml" class="link" href="scalarDataTypes.html" 
  target="_top">char</a> <var xmlns="http://www.w3.org/1999/xhtml" class="pdparam">hi</var>, 
  </td>

  
              
  </td>

  
            
  </tr>

  
            
  <tr valign="top">

  
              <td> </td>

  
              
  <td><a xmlns="http://www.w3.org/1999/xhtml" class="link" href="scalarDataTypes.html" target="_top">uchar</a> <var 
  xmlns="http://www.w3.org/1999/xhtml" class="pdparam">lo</var><code>)</code></td>

  
            
  </tr>

  
          
  </table>

  
        
  </div>

  
</div>

  
 

  
--

  

  
Kathleen 
  Mattson     

  
Technical, 
  Business, & Marketing Communications

  
www.millermattson.com     
  (503) 985-6004
Next in thread → Next in month →