Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Default XML stylesheet in Chrome?

In Internet Explorer, the default stylesheet used to display XML documents can be found at:

res://msxml.dll/DEFAULTSS.xsl

In Firefox, the equivalent can be found at

chrome://global/content/xml/XMLPrettyPrint.xsl

Is there something equivalent in Chrome?

like image 221
ObiWanKenobi Avatar asked Feb 27 '12 10:02

ObiWanKenobi


1 Answers

The CSS for the XML viewer specifically is https://code.google.com/codesearch#OAMlx_jo-ck/src/third_party/WebKit/Source/WebCore/xml/XMLViewer.css. That file, in combination with https://code.google.com/codesearch#OAMlx_jo-ck/src/third_party/WebKit/Source/WebCore/css/view-source.css, should give you all the detail you need.

Also remember that you're able to use the Web Inspector on XML files to see the rendered HTML, which should help you piece together exactly how the view works.

like image 135
Mike West Avatar answered Sep 18 '22 19:09

Mike West