3

I've got some DocBook documentation styled with a CSS xml-stylesheet declaration. It looks great in Firefox, but IE7 doesn't seem to understand the CSS child selectors (e.g. section > title { ... }).

I think this is because IE is running in quirks mode to render this XML, and older versions of IE didn't support that CSS syntax at all.

The pages I found on the web all seem to focus on HTML and XHTML doctypes and how IE will behave given various permutations of these values. I couldn't find any information about straight XML + CSS. Worse yet, it seems that random XML documents always end up in quirks mode, no matter what format or stylesheet directives they have.

Is XML rendering in IE doomed to be IE5.5 compatible? Will I really have to rewrite my CSS?

Jeremy
  • 1
  • 85
  • 340
  • 366
Steven Huwig
  • 20,015
  • 9
  • 55
  • 79
  • Might be worth asking SO's friends over at DocType this as well: http://doctype.com/ (see: http://blog.stackoverflow.com/2009/08/stack-overflow-and-doctype/ if you missed the memo). – Kev Sep 16 '09 at 13:01
  • Maybe, though this is more of a "how do I get the program to work properly" question rather than a "how do I make this design" question. – Steven Huwig Sep 16 '09 at 13:07
  • @Steven did you ever resolve this? – Tinister Feb 01 '12 at 19:06
  • @Tinister no, I didn't. I ended up just ignoring the fact that IE exists. – Steven Huwig Feb 06 '12 at 14:46

1 Answers1

0

Can you please explain, what exactly works wrong? IE7 seem like supporting child selectors according to the docs: http://msdn.microsoft.com/en-us/library/bb250496%28VS.85%29.aspx

Vladislav Rastrusny
  • 29,378
  • 23
  • 95
  • 156
  • Yes, for (X)HTML in standards-compliance mode, I suppose it does. But I am trying to render XML with CSS, as in http://www.w3.org/Style/styling-XML . But IE seems to render XML (with or without stylesheets) in quirks mode, and I assume that quirks mode does not support child selectors. – Steven Huwig Sep 16 '09 at 13:04