#45570 [Opn]: PhD doesn't use the <colspec> "align" attribute in xhtml output
| From: | philip@php.net | Date: | Sun, 27 Jul 2008 15:28:47 +0000 |
| Subject: | #45570 [Opn]: PhD doesn't use the <colspec> "align" attribute in xhtml output | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-1019@lists.php.net to get a copy of this message | ||
ID: 45570
Updated by: philip@php.net
Reported By: loudi@php.net
Status: Open
Bug Type: Doc Build problem
Operating System: Irrelevant
PHP Version: Irrelevant
New Comment:
Related bug:
http://bugs.php.net/bug.php?id=45318
Previous Comments:
------------------------------------------------------------------------
[2008-07-20 14:55:59] loudi@php.net
Description:
------------
When adding align attribute in a <colspec> (in docbook5
/table/tgroup/), it's neither used as a <td> nor a <th> attribute.
Reproduce code:
---------------
<table>
<title>Resource-Parameter Matrix</title>
<tgroup cols="5">
<colspec colnum="1" colname="col1" align="center"/>
<colspec colnum="2" colname="col2" align="center"/>
<thead>
<row>
<entry colname="col2">Key</entry>
<entry colname="col1">Value</entry>
</row>
</thead>
<tbody>
<row>
<entry colname="col1">Foo</entry>
<entry colname="col2">Bar</entry>
</row>
</tbody>
</tgroup>
</table>
Expected result:
----------------
<table border="5">
<caption><b>Foo table</b></caption>
<colgroup>
<col align="center" />
<col align="center" />
<thead valign="middle">
<tr valign="middle">
<th colspan="1" align="center">Key</th>
<th colspan="1" align="center">Value</th>
</tr>
</thead>
<tbody valign="middle" class="tbody">
<tr valign="middle">
<td colspan="1" rowspan="1" align="center">Foo</td>
<td colspan="1" rowspan="1" align="center">Bar</td>
</tr>
</tbody>
</colgroup>
</table>
Actual result:
--------------
<table border="5">
<caption><b>Foo table</b></caption>
<colgroup>
<col align="center" />
<col align="center" />
<thead valign="middle">
<tr valign="middle">
<th colspan="1">Key</th>
<th colspan="1">Value</th>
</tr>
</thead>
<tbody valign="middle" class="tbody">
<tr valign="middle">
<td colspan="1" rowspan="1" align="left">Foo</td>
<td colspan="1" rowspan="1" align="left">Bar</td>
</tr>
</tbody>
</colgroup>
</table>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=45570&edit=1