forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From iss...@cocoondev.org
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
       Body:
David Crossley writes: "This is not due to the Forrest DTDs. They handle table attributes
properly"

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"):

validate-xdocs:
/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>
        <table> 
          <caption>Super Table!</caption> 
          <tr> 
            <th>heading cell</th> 
            <th>heading cell</th> 
            <th>heading cell</th> 
          </tr> 
          <tr> 
            <td>data cell</td>  
            <td colspan="2">Data cell spanning two columns</td>  
          </tr> 
          <tr>
            <td rowspan="2">This cell spans two rows</td>
            <td>1</td>
            <td>2</td>
          </tr>
          <tr>
            <td>3</td>
            <td>4</td>
          </tr>
          <tr>
            <td align="left" >Left</td>
            <td align="center">Center</td>
            <td align="right">Right</td>
          </tr>
        </table>   		
      </section> 
---------------------------------------------------------------------
View the issue:

  http://issues.cocoondev.org/jira//secure/ViewIssue.jspa?key=FOR-262


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
   Versions:
             HEAD

   Assignee: 
   Reporter: Charles Palmer

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

Description:
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 

<!ATTLIST td
  %common.att; 
  %cell.span; 

Does this prevent cells from spanning rows and columns? 


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.cocoondev.org/jira//Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


Mime
View raw message