XML Parsing error: require </META>
I am having a peculiar problem viewing a web page generated with XSLT with the Firefox browser.
I have the simplest of XSLT stylesheets.
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xap="entrust/xap/7.0">
<xsl:output method="html" encoding="UTF-8"/>
<xsl:template match="/">
<html>
<head>
<title>This is the title</title>
</head>
<body>
<h1>This is a header</h1>
<h2>This is another header</h2>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
This XSLT is being run by a servlet. When the page is returned, I get the error "XML Parsing Error: mismatched tag. Expected: </META>."
If I view source, I see the following:
<html xmlns:xap="entrust/xap/7.0">
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>EMS Admin - POC</title>
</head>
<body>
<h1>EMS Admin - POC</h1>
<h2>About</h2>
</body>
</html>
Since this is HTML output, the unclosed META tag should be OK. If I save this HTML to a file, I can view it no problem.
I suspect this is a Firefox problem, but I thought I would check here to see if I am doing something wrong.
Thanks
Dave I
|