Maven 1.x PDF Plugin
  1. Maven 1.x PDF Plugin
  2. MPPDF-30

The first row of table is not rendered

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major 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 :
      0

      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?

        Activity

        Hide
        Lukas Theussl added a comment -

        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.

        Show
        Lukas Theussl added a comment - 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.
        Hide
        Arnaud Heritier added a comment -

        Fixed, you can download it with :
        maven plugin:download -Dmaven.repo.remote=http://cvs.apache.org/repository -DgroupId=maven -DartifactId=maven-pdf-plugin -Dversion=SNAPSHOT

        Show
        Arnaud Heritier added a comment - Fixed, you can download it with : maven plugin:download -Dmaven.repo.remote= http://cvs.apache.org/repository -DgroupId=maven -DartifactId=maven-pdf-plugin -Dversion=SNAPSHOT

          People

          • Assignee:
            Arnaud Heritier
            Reporter:
            Tamás Cservenák
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: