<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt">Do you have styles attached to the text of the document in the xls? (bold, italic, etc)<br>if not, then you can just do the mapping by creating table and cells by yourself... (or xslt)<br><div> </div>{^(00)^} LiNdA OcTaLiNa<br>---GeEeEee---<div><br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Jeremiah Dodds <jeremiah.dodds@gmail.com><br><b><span style="font-weight: bold;">To:</span></b> python-list@python.org<br><b><span style="font-weight: bold;">Sent:</span></b> Wednesday, December 3, 2008 9:50:49 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re:
 Converting a .xls file to .html<br></font><br>
<br><br><div class="gmail_quote">On Wed, Dec 3, 2008 at 5:54 AM, tarun <span dir="ltr"><<a rel="nofollow" ymailto="mailto:tarundevnani@gmail.com" target="_blank" href="mailto:tarundevnani@gmail.com">tarundevnani@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><font color="#000099" face="comic sans ms,sans-serif">Hello All,</font></div>
<div><font color="#000099" face="comic sans ms,sans-serif"></font> </div>
<div><font color="#000099" face="comic sans ms,sans-serif">I've a .xml file (saved as .xls) that can be opened in Microsoft excel. I want to write python code that converts this excel file into .html (so that it can be viewed as is in an explorer).</font></div>


<div><font color="#000099" face="comic sans ms,sans-serif"></font> </div>
<div><font color="#000099" face="comic sans ms,sans-serif">Can any one help?</font></div>
<div><font color="#000099" face="comic sans ms,sans-serif"></font> </div>
<div><font color="#000099" face="comic sans ms,sans-serif">Regards,</font></div>
<div><font color="#000099" face="comic sans ms,sans-serif">Tarun</font></div>
<br>--<br>
<a rel="nofollow" target="_blank" href="http://mail.python.org/mailman/listinfo/python-list">http://mail.python.org/mailman/listinfo/python-list</a><br>
<br></blockquote></div><br>A quick google search shows <a rel="nofollow" target="_blank" href="http://pyxlreader.sourceforge.net/">http://pyxlreader.sourceforge.net/</a> , and a few other libraries for reading xls files. I don't use excel, so I can't test it. There may not be a library for going straight from xls -> html, but if you can get xls -> text  or a list or whatnot, then you could use pretty much any html generation tool you want on it, python's got plenty of templating libraries available.<br>
</div></div></div><br>

      </body></html>