RE: [xsl] IE does not comprehend default namespace in XML

Subject: RE: [xsl] IE does not comprehend default namespace in XML
From: "Houghton,Andrew" <houghtoa@xxxxxxxx>
Date: Fri, 28 Aug 2009 09:33:51 -0400
> From: denit thomas [mailto:denit_thomas@xxxxxxxxxxx]
> Sent: Friday, August 28, 2009 3:19 AM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re: [xsl] IE does not comprehend default namespace in XML
> Sperberg,
> I managed to fix this issue. It was a very basic fix. I added the
> default namespace in the stylesheet as well and had a prefix for it
> defined too in the stylesheet. I then used the prefix to access the
> elements (from the xml).
> As I said I am pretty new to this :-)

The reason why you experienced the problem is that it was an error in
your stylesheet, not IE's fault.  Its too easy to blame IE without
understanding what its trying to resolve based on what you specified
in your stylesheet.  You specified in your stylesheet


without providing a namespace on the element nor supplied an xmlns=
on the xsl:stylesheet document element.  Therefore, that <html>
element is not in the XHTML namespace which is:

Because you didn't associate that <html> element with the XHTML
namespace IE will not recognize the markup as being XHTML and will
not automatically place itself into standards mode.  This has
implications on the CSS model being used, e.g., non-standards

Further, you didn't specify a DOCTYPE in your xsl:output so IE
doesn't know which version of HTML that you are talking about,
e.g., 3.2, 4.0, 4.01, etc.  This means that IE will choose to
be very lax about the markup it is willing to accept.


Current Thread