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:32 PM
Having added table attributes sucessfully to a Forrest document, I am now keen to have OpenOffice
table attributes processed in the same way.

Alas! I am an XSL newbie and don't know how to modify openoffice-writer2forrest.xsl so that
it can convert OpenOffice construction such as this:

	<table:table-cell table:style-name="Table1.A2" table:number-columns-spanned="2" table:value-type="string">
		<text:p text:style-name="P5">11 and 21</text:p>

into Forrest constructions such as this:
    <td colspan="2">11 and 21</td> 

If some superman could modify openoffice-writer2forrest.xsl around about line 212 to show
how this is done for the "colspan" attribute then I am happy to do my best to modify the stylesheet
to process further attributes in OOo tables. (I have my XML text books at hand and will endeavour
to be a good student, but in this case I think that one example could save me a day or two's

Incidentally, how do you go about debugging this sort of thing? It is one thing to unzip the
OOo .sxw file to see how OOo treats the tables. But how do I observe how my modified openoffice-writer2forrest.xsl
behaves as it processes my modified .sxw file? There must be intermediate processes and files
that I can intercept. 
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