W3C home > Mailing lists > Public > www-html@w3.org > January 2003

I think I had an error sending... Sending again... (IE handling of XHTML doctype and namespace)

From: Richard Norman <normri@samc.com>
Date: Tue, 28 Jan 2003 13:33:34 -0800
Message-Id: <se3686b7.092@samc.com>
To: <www-html@w3.org>

The statement below is correct,  I would like to add to this that I have
tested XHTML as both and that in the HTML mode, it was not able to
handle the multiple namespace capability as well.  When I did it as XML,
it seemed to handle that better, but the styling did not work as well
(in my experiences thus far).  These were relatively simple pages
however so as you get more complex you would need to test it...

  
Richard Norman 


Attached below is a sample of what I used in my tests...

<index.xml>

<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="mathml.xsl"?>

<!DOCTYPE html PUBLIC
	"-//W3C//DTD XHTML 1.0 Transitional//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:mat="http://www.w3.org/1998/Math/MathML" xml:lang="en" lang="en">
	<head>
		<title>my test XHTML page</title>
		<!--
		<object id="MathPlayer"
classid="clsid:32F66A20-7614-11D4-BD11-00104BD3F987"
codebase="http://www.dessci.com/dl/MathPlayerSetup.asp">
		</object>
		<?IMPORT NAMESPACE="mathns" IMPLEMENTATION="#MathPlayer"
?>
		-->
	</head>
	<body>
		<p>
			<script language="JavaScript"
type="text/javascript"> document.write('<strong><em>Hello</em>
World!</strong>'); document.write('<br/><strong><em>Hello</em>
World!</strong>');
			</script>
		</p>
		<p>The <strong>following is</strong> <span
style="text-decoration: underline;">MathML</span> markup:</p>
		
		<br />
		<mat:math>
			<mat:apply>
				<mat:log />
				<mat:logbase>
					<mat:cn> 3 </mat:cn>
				</mat:logbase>
				<mat:ci> x </mat:ci>
			</mat:apply>
		</mat:math>
	</body>
</html>

</index.xml>

<index.html>

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC
	"-//W3C//DTD XHTML 1.0 Transitional//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
	<head>
		<title>my test XHTML page</title>
	</head>
	<body>
		<p>
			<script language="JavaScript"
type="text/javascript"> /*<![CDATA[*/
document.write('<strong><em>Hello</em> World!</strong>');
document.write('<br/><strong><em>Hello</em> World!</strong>'); /*]]>*/
			</script>
		<br />
		<span
style="font-family:Tahoma;color:#990033;font-size:10pt;font-weight:bold;">calendar
of events</span>
		</p>
		<br />
	</body>
</html>

</index.html>


<snip> 
  
> I save it as examp2.htm and examp2.xml respectively. 

What you are seeing is IE's lack of support for XHTML.  If you name the
file 
examp2.htm, it treats it as HTML (not XHTML) and just parses it.  When
you name it 
examp2.xml, it treats it as XML and does not realize that it is
actually XHTML. 

Boris 



  
</snip> 

**************************************************************************************************
The contents of this email and any attachments are confidential.
It is intended for the named recipient(s) only.
If you have received this email in error please notify the system manager or  the 
sender immediately and do not disclose the contents to any one or make copies.

**************************************************************************************************
Received on Tuesday, 28 January 2003 16:34:23 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:54 GMT