Created attachment 75351 [details] This is the sample that will not display, also appearing in the ZIP file above I'm using Safari 5.0.2 and Chrome 7.0.517.44 on Windows XP. I cannot get it to display an XML document with an embedded CSS stylesheet. The file in question appears in this ZIP file: http://www.hl7.org/documentcenter/ballots/2011JAN/downloads/CDAR2_IG_SDISP_R1_D1_2011JAN.zip That document demonstrates is an attempt to enable display of standardized healthcare content in common web browsers. The style sheet appears inside an XML element and is referenced by an xml-stylesheet Processing instruction using a local URL: #hl7-css-for-cda There is an element inside the XML document that contains xml:id='hl7-css-for-cda' containting a CSS stylesheet, but it appears that the browser doesn't want to load it. Since both these browsers are based upon webkit, it was suggested that I post this bug here. The ZIP file described also contains more details about what is being attempted, why, and what fails (see appendix B).
See bug 49281 for some history. In short, there is no real specification for that, and Mozilla support is also largely broken.
This works beautifully in FireFox 3.6.12 (details: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12) My presumption about how this should work for a stylesheet embedded in XML is that it identifies the XML element whose text content is the stylesheet (type text/css), not an HTML or XHTML <style> element.
Yes - I wasn't saying that the attached test case didn't work in Firefox. Please see the linked bug (https://bugzilla.mozilla.org/show_bug.cgi?id=61675) for why Mozilla developers consider their implementation broken in general case.
<rdar://problem/8719709>