title: Can Chrome be made to perform an XSL transform on a local file?
body: <p>I was looking into xslt and started testing with the examples on w3schools.</p>
  
  <p>However, when I save the xml and xsl in files and try opening them locally, chrome won't perform the xsl transform. It just shows a blank page.</p>
  
  <p>I have added the<code>&lt;?xml-stylesheet type="text/xsl" href="style.xsl"&gt;</code> tag to the xml document, and firefox renders it as it is supposed to look. Also, if I look at the files through a web server, chrome displays the file as it is supposed to look.</p>
  
  <p>Is it that chrome has a problem finding the stylesheet information when the link is local? Changing the href to <code>file:///C:/xsl/style.xsl</code> didn't make any difference.</p>
  
  <p><em>Update:</em> This seems to be a side effect of a security-policy <a href="http://code.google.com/p/chromium/issues/detail?id=47416">to not treat file:///* as same origin.</a> This makes the following error appear in the console:</p>
  
  <blockquote>
    <p>Unsafe attempt to load URL file:///C:/xsl-rpg/style.xsl from frame with URL file:///C:/xsl-rpg/data.xml. Domains, protocols and ports must match. </p>
  </blockquote>