RE: [docbook-apps] HTML Column Width Trouble

From
Eric Johnson <>
Date
2009-07-06T15:50:56+00:00
ID
Thread
RE: [docbook-apps] HTML Column Width Trouble
Title: HTML Column Width Trouble

Bob,

This XHTML:

<div class="table">
<a xmlns:saxon="http://icl.com/saxon" id="activemq_console" />
<p class="title">
<b>Table 3.1. ActiveMQ Console 
Commands</b>
</p>
<div class="table-contents">
<table summary="ActiveMQ Console 
Commands" cellpadding="2" 
border="1">
<colgroup>
<col width="1in" />
<col width="3in" />
</colgroup>
<thead>
<tr>
<th>Command</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<a href="ESBactivemqBrowse.html" 
class="olink">browse</a>
</td>
<td>Displays selected messages on a specified 
destination</td>
</tr>
<tr>
<td>
<a href="ESBactivemqBstat.html" 
class="olink">bstat</a>
</td>
<td>Displays useful broker statistics</td>
</tr>
<tr>
<td>
<a href="ESBactivemqCreateBroker.html" 
class="olink">create-broker</a>
</td>
<td>Creates 
a broker instance</td>
</tr>
<tr>
<td>
<a href="ESBactivemqDestroyBroker.html" 
class="olink">destroy-broker</a>
</td>
<td>Removes 
a broker instance</td>
</tr>
<tr>
<td>
<a href="ESBactivemqList.html" 
class="olink">list</a>
</td>
<td>Lists 
all available brokers in the specified JMX context</td>
</tr>
<tr>
<td>
<a href="ESBactivemqLs.html" class="olink">ls</a>
</td>
<td>Lists 
all available brokers in the specified JMX context</td>
</tr>
<tr>
<td>
<a href="ESBactivemqPurge.html" 
class="olink">purge</a>
</td>
<td>Deletes 
the selected destination's messages that match the message selector</td>
</tr>
<tr>
<td>
<a href="ESBactivemqQuery.html" 
class="olink">query</a>
</td>
<td>Displays the selected broker component's 
attributes and statistics</td>
</tr>
</tbody>
</table>
</div>
</div>

is generated from this 
XML

<table xml:id="activemq_console">
<title>ActiveMQ 
Console Commands</title>
<tgroup cols="2">
<colspec colwidth="1in"/>
<colspec colwidth="3in"/>
<thead>
<row>
<entry>Command</entry>
<entry>Description</entry>
</row>
</thead>
<tbody>
<row>
<entry>
<olink targetptr="ESBactivemqBrowse"
xrefstyle="select: label docname
nopage"
>browse</olink>
</entry>
<entry>Displays selected messages on a specified 
destination</entry>
</row>
<row>
<entry>
<olink targetptr="ESBactivemqBstat"
xrefstyle="select: label docname
nopage"
>bstat</olink>
</entry>
<entry>Displays useful broker statistics</entry>
</row>
<row>
<entry>
<olink targetptr="ESBactivemqCreateBroker"
xrefstyle="select: label docname
nopage"
>create-broker</olink>
</entry>
<entry>Creates a broker instance</entry>
</row>
<row>
<entry>
<olink targetptr="ESBactivemqDestroyBroker"
xrefstyle="select: label docname
nopage"
>destroy-broker</olink>
</entry>
<entry>Removes a broker instance</entry>
</row>
<row>
<entry>
<olink targetptr="ESBactivemqList"
xrefstyle="select: label docname
nopage"
>list</olink>
</entry>
<entry>Lists all available brokers in the specified 
JMX context</entry>
</row>
<row>
<entry>
<olink targetptr="ESBactivemqLs"
xrefstyle="select: label docname
nopage"
>ls</olink>
</entry>
<entry>Lists all available brokers in the specified 
JMX context</entry>
</row>
<row>
<entry>
<olink targetptr="ESBactivemqPurge"
xrefstyle="select: label docname
nopage"
>purge</olink>
</entry>
<entry>Deletes the selected destination's messages 
that match the message
selector</entry>
</row>
<row>
<entry>
<olink targetptr="ESBactivemqQuery"
xrefstyle="select: label docname
nopage"
>query</olink>
</entry>
<entry>Displays the selected broker component's 
attributes and statistics</entry>
</row>
</tbody>
</tgroup>
</table>

I'm using the namespace aware version of the 1.75.1 
style sheets.

The html is rendered with the columns very narrow and 
changing the widths doesn't have any effect. The PDF on the other hand looks 
great.

Thanks in Advance,

Eric

From: Bob Stayton [mailto:] 

Sent: Thursday, July 02, 2009 8:24 PM
To: Eric Johnson; 
docbook-apps
Subject: Re: [docbook-apps] HTML Column Width 
Trouble

Hi Eric,

When you say the "HTML does not come out right", 
can you be more specific?  Can you show what the XML input is and the HTML 
output is?

 

Also, what version of the stylesheets are you 
using?

 

Bob Stayton
Sagehill Enterprises


 

 

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

  
From: 
  Eric 
  Johnson 

  
To: docbook-apps 

  
Sent: Thursday, July 02, 2009 3:28 
  PM

  
Subject: [docbook-apps] HTML Column Width 
  Trouble

  

  
When I set the colwidth for a CALS table the 
  generated HTML does not come out right. 

  
I'm using Saxon 6.5.5 and have the extensions 
  turned on (and on the classpath). The graphics extension is working fine, so 
  I'm pretty sure they are set up properly.

  
Is there something I'm missing?