[LON-CAPA-dev] Problems with images in HTML files created with MS-Word

Ricardo Luis Kulzer lon-capa-dev@mail.lon-capa.org
Sun, 26 Sep 2004 19:24:10 -0300


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hello, list.<br>
I am having problems with the exhibition of images in html files
created with the MS-Word 2002 editor.<br>
I created a simple test file, with one only image, and saved as HTML.
If you want to see the document, I put in<br>
<a class="moz-txt-link-freetext" href="http://www.mc21.fee.unicamp.br/~ricardol/test-loncapa.zip">http://www.mc21.fee.unicamp.br/~ricardol/test-loncapa.zip</a><br>
If I expand the .ZIP file in my HD and open the index.html file
directly with MS - Internet Explorer 6, the image appears perfectly.<br>
However, if I login in my LON-CAPA as author, upload the .ZIP file in
my Construction Space, expand it, and publish all the contained files,
the image doesn't appear when I see the file index.html published <br>
I think the problem is with the headers shown by the LON-CAPA. When I
Access the index.html directly from my HD, I have the following headers:<br>
<hr size="2" width="100%"><b>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML
4.0 Transitional//EN"&gt;<br>
&lt;HTML xmlns=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/TR/REC-html40">"http://www.w3.org/TR/REC-html40"</a> xmlns:v = <br>
"urn:schemas-microsoft-com:vml" xmlns:o = <br>
"urn:schemas-microsoft-com:office:office" xmlns:w = <br>
"urn:schemas-microsoft-com:office:word"&gt;&lt;HEAD&gt;&lt;TITLE&gt;1&lt;/TITLE&gt;<br>
&lt;META http-equiv=Content-Type content="text/html;
charset=windows-1252"&gt;<br>
&lt;META content=Word.Document name=ProgId&gt;<br>
&lt;META content="MSHTML 6.00.2800.1458" name=GENERATOR&gt;<br>
...</b><br>
<hr size="2" width="100%"><br>
<br>
<br>
However, when I access the index.html published in the LON-CAPA, the
headers of the shown document is the following:<br>
<hr size="2" width="100%"><b>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML
4.0 Transitional//EN"&gt;<br>
&lt;html&gt;&lt;HEAD&gt;&lt;TITLE&gt;1&lt;/TITLE&gt;<br>
&lt;META http-equiv="Content-Type" content="text/html;
charset=windows-1252"&gt;<br>
&lt;META content="Word.Document" name="ProgId"&gt;<br>
&lt;META content="MSHTML 6.00.2800.1458" name="GENERATOR"&gt;<br>
...</b><br>
<hr size="2" width="100%"><br>
<br>
<br>
I am having the same problem when I saved a file .html containing
images using the MS-FrontPage 2002.<br>
Does anyone have any idea of how to solve the problem (except the
simple "try another editor")?<br>
Thanks,<br>
Ricardo l. Kulzer.<br>
</body>
</html>