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 in

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

Is there anything in Chrome?

+6
xml google-chrome xslt
source share
2 answers

CSS for viewing XML specifically https://code.google.com/codesearch#OAMlx_jo-ck/src/third_party/WebKit/Source/WebCore/xml/XMLViewer.css . This file, combined with https://code.google.com/codesearch#OAMlx_jo-ck/src/third_party/WebKit/Source/WebCore/css/view-source.css should provide you with all the necessary information.

Also remember that you can use the web inspector in the XML files to view the rendered HTML code, which should help you build how the view works.

+1
source share

Take a look:

https://code.google.com/codesearch#OAMlx_jo-ck/src/third_party/WebKit/Source/WebCore/xml/XMLViewer.js

Also, if you want to see another XSLT transform that provides an accurate and good representation of the XML browser view, look at the transform used by XPath Visualizer for both IE and FF.

0
source share

All Articles