forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [issues] New comment: (FOR-262) openoffice2forrest: add support for merged cells in tables
Date Thu, 01 Jan 1970 00:00:00 GMT
The following comment has been added to this issue:

     Author: Charles Palmer
    Created: Tue, 24 Aug 2004 10:14 PM
David Crossley writes: "This is not due to the Forrest DTDs. They handle table attributes

Yes and no.

I added a second table to the seed's "sample.xml", adding colspan, rowspan and align attributes.
These worked exactly as hoped for. (I include the snippet at the end of this message - you
might consider adding it to sample.xml next timme round).

However, when I ran "forrest validate" I got error messages as that suggest that the validation
process doesn't appreciate these new attributes that I introduced. (I conclude that the "validate"
operation is more rigourous than the "site" operation).

The error message (repeated for all three uses of "align"):

/D:/junk/src/documentation/content/xdocs/samples/sample.xml:305:31: Attribute "align" must
be declared for element type "td".

(Interestingly I didn't get objections to the rowspan or colspan attributes).

The code snippet that adds attributes to tables within sample.xml:

      <section id="table2">
        <title>More sophisticated tables</title>
        <p>If HTML <code>&lt;table&gt;</code> attributes are included
in the Forrest file
		they will be properly handled. The next table shows <strong>colspan</strong>,

		<strong>rowspan</strong> and <strong>align</strong> examples.</p>
          <caption>Super Table!</caption> 
            <th>heading cell</th> 
            <th>heading cell</th> 
            <th>heading cell</th> 
            <td>data cell</td>  
            <td colspan="2">Data cell spanning two columns</td>  
            <td rowspan="2">This cell spans two rows</td>
            <td align="left" >Left</td>
            <td align="center">Center</td>
            <td align="right">Right</td>
View the issue:

Here is an overview of the issue:
        Key: FOR-262
    Summary: openoffice2forrest: add support for merged cells in tables
       Type: Improvement

     Status: Unassigned
   Priority: Major

    Project: Forrest
  Component: Other

   Reporter: Charles Palmer

    Created: Sun, 22 Aug 2004 1:06 PM
    Updated: Mon, 23 Aug 2004 8:21 AM

Processing of OpenOffice files is useful, but tables containing merged cells are not handled
properly, preventing the use of many OpenOffice documents with Forrest.

If you merge two cells in OOo you get this attribute: table:number-columns-spanned="2" and
this could translate into the HTML colspan="2" attribute. But it's not happening - does this
first require an enhancement of the Forrest DTD? Which seems to contain the following:

<!ENTITY % cell.span 'colspan CDATA "1"
         rowspan CDATA "1"'> and 


Does this prevent cells from spanning rows and columns? 

This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:

If you want more information on JIRA, or have a bug to report see:

View raw message