[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: IE does not comprehend default namespace in XML

Subject: RE: IE does not comprehend default namespace in XML
From: "Houghton,Andrew" <houghtoa@xxxxxxxx>
Date: Fri, 28 Aug 2009 09:33:51 -0400
RE:  IE does not comprehend default namespace in XML
> From: denit thomas [mailto:denit_thomas@xxxxxxxxxxx]
> Sent: Friday, August 28, 2009 3:19 AM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re:  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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2011 All Rights Reserved.