[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Modern web site design with XML and XSLT
David Carlisle wrote: > > > browsers from 6 up have MSXSLT, but you have to call it from > > Javascript since there's no application/xhtml+xml support in IE > > (and not likely to arrive before IE 13 at this rate...). > > > If you are using client side xslt then can't you can just serve as > application/xml which IE does work, and use the xml-stylesheet pi to > link to the xslt? The main disadvantage to using application/xml as > opposed to application/xhtml+xml is that things don't render as html > by default, but if you are using client side xslt that isn't an issue. > There is no such workaround in IE, that I know of, that doesn't either break the "back" button or throw the browser into quirks mode. Calling XSLT via Javascript keeps IE in standards mode, making it possible to write a small CSS hack file for IE 6, instead of having to maintain different CSS altogether to support all versions of IE. IIRC, though, client-side XSLT doesn't change the Content-Type of the document with the XML PI, so if that document is application/xml then its output will be also, instead of being rendered as HTML -- meaning good luck getting forms and such to work, even if you can get them styled. So I stick with text/html for IE, with a standards-mode DOCTYPE, and the CSS links are in the <head> of the document the client receives, for performance. -Eric
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|