Uploaded image for project: 'Forrest (Retired)'
  1. Forrest (Retired)
  2. FOR-1102

Odt plugin does not manage tables correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.9
    • 0.11
    • Plugin: input.odt
    • None

    Description

      The intermediate format generated for tables with the Odt input plugin is inherited from the org.apache.forrest.plugin.input.odt/resources/stylesheets/common/odt_to_xhtml.xsl style sheet and is far from Xdoc format.
      The genereted HTML page is a table because HTML tags are correct but the table layout is not applied.
      Something like the following is generated as intermdiate format :

      <table class="Tableau1">
        <colgroup>
          <col class="Tableau1_A"/>
          <col class="Tableau1_B"/>
          <col class="Tableau1_C"/>
          <col class="Tableau1_D"/>
        </colgroup>
        <tbody>
          <tr>
            <td class="Tableau1_A1">
              <p><strong><em>Jeu</em></strong>
              </p>
            </td>
            <td class="Tableau1_A1">
              <p><strong><em>Emulateur</em></strong></p>
            </td>
            <td class="Tableau1_A1">
              <p><strong><em>Etat</em></strong></p>
            </td>
            <td class="Tableau1_A1">
              <p><strong><em>Commentaires</em></strong></p>
            </td>
          </tr>
          <tr>
              <td class="Tableau1_A1">
                <p>Ultima I</p>
              </td>
              <td class="Tableau1_A1">
                <p><link href="http://sourceforge.net/projects/ultima-java/" target="_blank">ultima-java</link></p>
              </td>
              <td class="Tableau1_A1">
                <p>Inachevé</p>
              </td>
              <td class="Tableau1_A1">
                <p>Emulateur java</p>
              </td>
            </tr>
          </tbody>
      </table>

      Furthermore, if used with the pdf plugin the following error occurs :
          
          ERROR - Ignoring property: number-columns-repeated="NaN" (No conversion defined NaN; property:'number-columns-repeated')
          WARN - Mismatch: table-body (http://www.w3.org/1999/XSL/Format) vs. flow (http://www.w3.org/1999/XSL/Format)
          WARN - Mismatch: table-body (http://www.w3.org/1999/XSL/Format) vs. page-sequence (http://www.w3.org/1999/XSL/Format)
          WARN - Mismatch: table-body (http://www.w3.org/1999/XSL/Format) vs. root (http://www.w3.org/1999/XSL/Format)

      I think it would be simple to correct this, my problem is do we have to update the common style sheet or is it better to correct the odt-to-forrest-xhtml.xsl ?

      Attachments

        Activity

          People

            Unassigned Unassigned
            duc Cyriaque Dupoirieux
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: