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 <html> 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: http://www.w3.org/1999/xhtml 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 complient. 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. Andy.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] IE does not comprehend de, denit thomas | Thread | [xsl] Pipelining 2 stylesheets, Martynas Jusevicius |
RE: [xsl] DTD and Collection, Michael Kay | Date | Re: [xsl] Some attribute not displa, ac |
Month |