View Full Version : To 'table' or not to 'table'?

08-03-2007, 01:04 AM
I'm just about to start the horrific task of converting hundreds of Word docs to nicely-formatted html, and was wondering, before beginning, if anyone had any tips or suggestions regarding how to go about it.

All of the pages are riddled with tabulated data as illustrated in this jpg:


Rendering such a layout with tables and CSS won't be a problem, but typing all those nasty <td>'s is gonna be a pain.

I'm not quite sure what answer I'm expecting, but I thought I'd run the project by you guys first in the hope that there might be some other(quicker?) way. (Or some obvious alternative that I simply don't know about!)

Any thoughts?

08-03-2007, 01:20 AM
Do you have a document you can attach? I'm curious as to what Dreamweaver will do with the html output from Microsoft.

08-03-2007, 01:37 AM

08-03-2007, 03:32 AM
I havea table generator at http://javascript.about.com/library/bltablegen.htm that can create all the necessary HTML tags for whatever sized table you want so that all you have to do is plug in the content. That would save you typing in all the tags. Don't know if copy/pasting the content will be quicker though.

08-03-2007, 06:46 AM
Hmm Dreamweaver doesn't do to good of a job with it. This is the output of the "Clean Word HTML" option in Dreamweaver CS3 after saving the Word Document as an html file.

08-03-2007, 11:14 AM
Thanks felgall - that generator will be useful.

Aerospace - I never owned dreamweaver: now I know why! :-) 'Interesting' results. Thanks for trying. (By the way, if you really want a laugh, try using Microsoft Word to convert it to html...)

08-03-2007, 11:18 AM
I did. I used word to convert it to html and then used Dreamweaver to clean up the Word HTML. I say it did a decent job but it doesn't understand semantics. Dreamweaver is a tool. You have to learn how to use it for it to be any use to you.

08-03-2007, 03:00 PM
I have a PHP script (http://php.uel.ac.uk/XPFilter.php) that takes the output of Word XP 'save as HTML' and strips it bare. By default it inserts the University of East London style file , but this can easily be replaced.

It usually preserves tables OK.


08-03-2007, 03:19 PM
Hi, JohnRostron - sounds like that script would save my life. Any chance of emailing it to: codingforums AT mathesonbayley DOT com please? :-)

08-03-2007, 03:52 PM
The script is installed at the link given and can be used from there. If you did not get the link, here it is again.


If you really need the original script, I can email it to you.

BtW, When I said 'bare' I meant bare HTML, with all, scripting and styling removed.


08-03-2007, 05:25 PM
Sorry, I didn't notice the link before.

Thanks a lot, John