Hi Folks,
The following code works fine in FF & IE
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="copy.xsl" ?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <meta http-equiv="Content-Type" content="application/xhtml+xml;" /> <title>Simple Example </title> </head>
<body style="background-color:red;">
<p>test line of text X</p>
</body>
</html>
However add the doctype
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> and serve as an xml file and it errors with the following (IE errors)
The server did not understand the request, or the request was invalid. Error processing resource 'http://www.w3.org/TR/xhtm...
The copy.xsl is:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml" version="1.0"> <xsl
utput method="xml" encoding="utf-8"/> <xsl:template match="/"> <xsl:copy-of select="node"/> </xsl:template> </xsl:stylesheet>
Any thoughts unless I'm missing the obvious would be great. I'll keep investigating and see if I fix it.
Thanks
A
The following code works fine in FF & IE
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="copy.xsl" ?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <meta http-equiv="Content-Type" content="application/xhtml+xml;" /> <title>Simple Example </title> </head>
<body style="background-color:red;">
<p>test line of text X</p>
</body>
</html>
However add the doctype
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> and serve as an xml file and it errors with the following (IE errors)
The server did not understand the request, or the request was invalid. Error processing resource 'http://www.w3.org/TR/xhtm...
The copy.xsl is:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml" version="1.0"> <xsl
Any thoughts unless I'm missing the obvious would be great. I'll keep investigating and see if I fix it.
Thanks
A