Should XML files where stylesheet can't be found fallback to displaying like one w/o a stylesheet?

396 views
Skip to first unread message

David Carlson

unread,
Nov 5, 2023, 2:59:16 PM11/5/23
to Chromium-discuss
When viewing an XML document without something like
<?xml-stylesheet type="text/xsl" href="MyStylesheet.xsl"?> in it, you will get the raw XML document displayed in the browser.

If an XML document does have <?xml-stylesheet type="text/xsl" href="MyStylesheet.xsl"?>, but that href isn't findable, the browser just displays an empty page.  On top of that, at least in Chrome, you can't even right click to see the source.  You can get to see it finally some other ways, but it is cumbersome.

I get that if someone is putting xml-stylesheet in the document, they would like that stylesheet to be used for display.   But if it isn't where it is stated, why shouldn't the backup be to just do what it would have done if the xml-stylesheet wasn't there in the first place, and show the raw XML?

To Firefox's credit, they at least put on the screen ""Error loading stylesheet: Parsing an XSLT stylesheet failed."", which is at least better than a blank screen, but still not ideal IMO.

Thoughts?

David Carlson

unread,
Dec 14, 2023, 11:07:55 AM12/14/23
to Chromium-discuss
No discussion here.... nobody else pulls up XML docs in Chrome? :)

--
--
Chromium Discussion mailing list: chromium...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-discuss

---
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-discu...@chromium.org.

David Carlson

unread,
Dec 20, 2023, 9:12:47 AM12/20/23
to EMMAH MATTHEWS, Chromium-discuss
The "what" is I'm just saying, I believe I've clearly laid out an issue/bug with how Chrome deals with XML file display.  Seems like "we" (the community) should try to give ideas on what to do to fix it.

On Fri, Dec 15, 2023 at 10:04 AM EMMAH MATTHEWS <15...@stu.mvschool.org> wrote:
what
Please note: This email was sent via a student account from the MSD of Mt. Vernon in Mt. Vernon, IN.
To contact a member of staff to discuss or report the contents of this email then you can contact us at ab...@mvschool.org.

.


Reply all
Reply to author
Forward
0 new messages