Next in thread → Next in month →

Re: [docbook-apps] Testing docbook table examples

From
Bob Stayton <>
Date
2007-02-11T07:19:20+00:00
ID
22f801c74dac$f3274820$6400a8c0@totoro
Thread
Re: [docbook-apps] Testing docbook table examples
OK, it is working, just not as you expected.  
8^)

The table frame attribute controls only the outside 
frame.  The rowsep and colsep attributes control the inner rules in Cals 
tables. Those are set to 1 (on) by default in Cals tables, and the stylesheet 
acts on that.  Set them to zero to turn them off.

 

Bob Stayton
Sagehill Enterprises
DocBook 
Consulting


 

 

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

  
From: 
  Linux 
  Solutions 

  
To:  
  

  
Sent: Saturday, February 10, 2007 9:09 
  PM

  
Subject: Re: [docbook-apps] Testing 
  docbook table examples

  

  
On 2/6/07, Bob 
  Stayton <> 
  wrote:
  
    

    
Hi,

    
The Cals table example worked for me when 
    frame="topbot". 

  

This is the example I'm trying. I see a table with rules for all rows 
  and column. There is none on left and right side though.
I thought I would 
  see rules on the top and bottom only. 

<article xmlns='http://docbook.org/ns/docbook'>
<title>Example 
  table</title>

<table frame='topbot'>
<title>Sample 
  CALS Table</title> 
<tgroup 
  cols='4'>
<thead>
<row>
  <entry>Horizontal 
  Span</entry>
  <entry>a3</entry>
  
  <entry>a4</entry>
  
  <entry>a5</entry>
</row>
</thead>
<tbody>
<row>
  
  <entry>f2</entry>
  
  <entry>f3</entry>
  
  <entry>f4</entry>
  
  <entry>f5</entry>
</row>
<row>
  
  <entry>b2</entry>
  
  <entry>b3</entry>
  
  <entry>b4</entry>
  <entry>Vertical 
  Span</entry>
</row>
</tbody>
</tgroup>
</table> 
  
</article>

 

  
    

    
For tables using HTML markup, the 
    frame="hsides" should work, but it currently is not implemented in the 
    stylesheet.  You could bug report that one.

    
 

    
Bob Stayton
Sagehill Enterprises
DocBook Consulting


    

    
 

    
 

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

      
From: 
      Linux Solutions 
      

      
To: 
       

      
Sent: 
      Tuesday, February 06, 2007 10:39 PM

      
Subject: 
      [docbook-apps] Testing docbook table examples

      

Hello,

I'm testing docbook5 table examples for PDF 
      with frame="topbot" and it doesn't seem to work. I'm using xslt, 
      docbook5-xsl-1.72.0, fop 0.93 and docbook 5.0.

The examples 
      are,
http://www.docbook.org/tdg5/en/html/cals.table.html 
      
http://www.docbook.org/tdg5/en/html/html.table.html

FOP 
      says,
<snip>
transforming docbook to fo 
Making portrait 
      pages on USletter paper (8.5inx11in)
transforming fo to pdf
Feb 6, 
      2007 10:28:18 PM org.apache.fop.fo.FONode attributeWarning
WARNING: 
      Warning(14/1335): fo:table, table-layout="auto" is currently not supported 
      by FOP 
Feb 6, 2007 10:28:18 PM org.apache.fop.fo.FONode 
      attributeWarning
WARNING: Warning(14/1492): fo:table-header, In the 
      separate border model (border-collapse="separate"), borders are not 
      applicable to fo:table-header, but a non-zero value for border was found. 
      
Feb 6, 2007 10:28:18 PM org.apache.fop.fo.FONode 
      attributeWarning
WARNING: Warning(17/172): fo:table-body, In the 
      separate border model (border-collapse="separate"), borders are not 
      applicable to fo:table-body, but a non-zero value for border was found. 
      
Feb 6, 2007 10:28:18 PM org.apache.fop.fo.flow.TableColumn 
      bind
WARNING: table-layout="fixed" and column-width unspecified => 
      falling back to proportional-column-width(1)
Feb 6, 2007 10:28:18 PM 
      org.apache.fop.fo.flow.TableColumn bind
WARNING: table-layout="fixed" 
      and column-width unspecified => falling back to 
      proportional-column-width(1)
Feb 6, 2007 10:28:18 PM 
      org.apache.fop.fo.flow.TableColumn bind
WARNING: table-layout="fixed" 
      and column-width unspecified => falling back to 
      proportional-column-width(1) 
Feb 6, 2007 10:28:18 PM 
      org.apache.fop.fo.flow.TableColumn bind
WARNING: table-layout="fixed" 
      and column-width unspecified => falling back to 
      proportional-column-width(1)
Feb 6, 2007 10:28:18 PM 
      org.apache.fop.fo.flow.TableColumn bind
WARNING: table-layout="fixed" 
      and column-width unspecified => falling back to 
      proportional-column-width(1)
Feb 6, 2007 10:28:18 PM 
      org.apache.fop.hyphenation.Hyphenator getHyphenationTree
SEVERE: 
      Couldn't find hyphenation pattern en 
</snip>

I see the 
      table with frame on all sides and rows.

Any ideas? Are there better 
      open source tools for PDF processing other than 
      FOP?

TIA,
Josh
Next in thread → Next in month →