Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.2
-
Fix Version/s: 2.3
-
Labels:None
-
Environment:maven-pdf-plugin-2.2.1
-
Number of attachments :
Description
I'm not sure is this FOP or maven-pdf issue... sory for bothering if this is not the right place...
In XDOC defined tables like:
<table>
<tr><td>Quote:</td></tr>
<tr>
<td>
There's a common misconception that stateless session beans cannot hold state. They are stateless because they do not hold state between method invocations <i>on behalf of any single client</i>. They are free to maintain internal state - for example, to cache
resources and data used on behalf of <i>all</i> the clients they serve.
</td>
</tr>
<tr><td>
<i><b>Rod Johnson</b>, J2EE Design and Development, Wroxbooks</i>
</td></tr>
</table>
the first row (the "Quote") is not rendered. This applies to all tables Am i missing something?
You are not missing something, the same issue affects the pdf version of the maven documentation (http://maven.apache.org/maven.pdf): every table is missing its first row! (check for instance p12 of maven.pdf).
I tracked down the problem to line 206 of fo-tables.xslt:
<xsl:apply-templates select="tr[position()!=1][count(*)!=count(th)]">
and resolved it by removing the "[position()!=1]" part:
<xsl:apply-templates select="tr[count(*)!=count(th)]">
Now my tables show up correctly in the pdf output. However, I don't know what the purpose of that test was and if I am not breaking something else by removing it.