Re: Gnumeric export format xhtml



Just some comments:

Changing the html exporter to export xhtml is virtually trivial and definitely does not require any significant amount of coding. Essentially we need to:

1) change all the tags to lowercase (they are currently all upper case)
2) make sure we quote all attributes (I believe that is only necessary for rowspan and colspan.)
3) change <p> to <p></p> between tables

and

4) depending on whether we create html or xhtml include the correct header info


Since items 1 to 3 are valid for html, the main code can do double duty.

Andreas


Jody Goldberg wrote:

On Tue, Aug 13, 2002 at 09:08:22PM +0200, Renaud Saliou wrote:

I start reading content of directory gnumeric/plugins/html from cvs. I will try to send a patch. Like i am a little busy, it will take me time and like i am a new developer, it will be good that someone verify that my code respects philosophy of the Gnumeric project. I hope i wouldn't have problems to compile.


Another developer has also volunteered to take a look at this,
Daniel you may want to contact Renaud to avoid replication.  On the
export side you'll want to look at html.c, on import html-read.c.
We would only be interested in patches to the 1.1.x version when
reading.  It was rewritten to use libxml2's html parser.  Converting
to xhtml would almost certainly be trivial.

Export will take slightly more work.  Ideally html and xhtml export
could share code, but a fork would be reasonable if required.  The
amount of code in question is small.

Andreas is the one to contact about both segments, he has done all
of the recent work.



--
Prof. Dr. Andreas J. Guelzow
http://www.math.concordia.ab.ca/aguelzow




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]