I've got a rather bizarre problem which I can't quite get my head
around, and was wondering if anybody might be able to help.

I'm using Xalan to transform XML into HTML4 using an XSLT stylesheet.
The page appears to be generated correctly, from looking at the source
code.  However, upon loading, Internet Explorer (5 and 6) gives the error:

       The character '>' was expected. Error processing resource
'http://www.w3.org/TR/html4/strict.dtd'. Line 81, Position 5
           -- media type, as per [RFC2045]
       ----^

The line number referenced is not related to the source code of my
page.  Mozilla, meanwhile gives the error "XML Parsing Error: mismatched
tag. Expected: </link>" which would imply that it is trying to parse it
as XHTML.  Changing the DOCTYPE declaration from Strict to Transitional
changes the line number in IE but not the error given by Mozilla.
Removing the DOCTYPE definition completely brings IE's error in line
with Mozilla's.

However, all of this would perhaps seem rather irrelevant, as I found
that saving the file to disk and re-opening it causes it to be displayed
correctly in both browsers.  Similarly, saving the resultant HTML and
serving it through Tomcat also works, regardless of whether the filename
extension is .html or .jsp.  My only suggestion was that perhaps it was
something to do with the MIME type, but presumably Tomcat would decide
that based on the filename extension if my JSP pages were not to contain
the line:

<%@ page language="java" contentType="text/html" %>

This presumption is supported by the fact that removing this line makes
no difference to either error.

Which leaves me completely out of ideas... help!

TIA,

Jon



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to