Next in thread → Next in month →

Re: [docbook-apps] Generating <p> tags around first para of a table entry

From
Bob Stayton <>
Date
2012-03-25T18:16:09+00:00
ID
004f01cd0ab3$569aed30$6600a8c0@pazu
Thread
Re: [docbook-apps] Generating <p> tags around first para of a table entry
Hi Dave,

I'm not able to duplicate this problem. Every 
<para> in my table cells generates a <p> with 1.76.1/xhtml-1_1 
stylesheets.  Can you provide a sample?  Did you test it with the 
original stylesheet without any customizations?

 

Bob Stayton
Sagehill Enterprises


 

 

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

  
From: 
  Xmplar 

  
To:  
  

  
Sent: Saturday, March 24, 2012 4:39 
  AM

  
Subject: [docbook-apps] Generating 
  <p> tags around first para of a table entry

  

  X-NONE
  X-NONE
  
   
   
   
   
   
   
   
   
   
   
   
  
  MicrosoftInternetExplorer4
  
   
   
   
   
   
   
   
   
   
   
   
  

  
When transforming to xhtml1-1 I?ve noticed that in a formal 
  table, the first <para> inside an <entry> element does not 
  generate with any <p> tags ? the text sits immediately inside <td 
  style="border-right: 1px none #000000; border-bottom: 1px none #000000; ">. 
  However, the second and subsequent paragraphs are surrounded with 
  <p>.  It is the same 
  situation with text in an <entry> element on its own. This is 
  problematic, because when using iBooks, the first para is not rendered in the 
  selected font style for the document.

  
I looked at <xsl:template 
  match="d:entry|d:entrytbl" name="entry"> and 
  thought I?d found the right place, so I customised with putting <p> in 
  this coding:

  
     <xsl:choose>
            
  <xsl:when test="$empty.cell">
              
  <xsl:text>&#160;</xsl:text>
            
  </xsl:when>
            
  <xsl:when test="self::d:entrytbl">
              
  <xsl:call-template name="tgroup"/>
            
  </xsl:when>
            
  <xsl:otherwise>
              
  <p>
              
  <xsl:apply-templates/>
              
  </p>
            
  </xsl:otherwise>
          
  </xsl:choose>
        
  </xsl:element>

  
That only generated an opening <p> tag before the 
  first paragraph ? there was no closing tag. Where else should I be 
looking?

  
  
  
  

  
-- 
Dave 
Gardiner
Next in thread → Next in month →