lubi lubi - 2 months ago 7
Dart Question

Is it Dart Server or the browser that performs Xsl transformations?

Are xsl transformations performed by the dart server or is it any modern browser that performs it?

if I try to open and xml file containing a link to the .xsl file then Chrome won't open it at all whereas Firefox will. I've worked out that this is just a security issue. To actually view the xml file through xslt to turn it into an html file in Chrome I can run Pub Serve or just use a Python server.

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="simple.xsl" ?>

the xsl file contains html with w3 namespace.

<?xml version="1.0" encoding="UTF-8"?>
<html xsl:version="1.0" xmlns:xsl="" >
<body style="font-family:Arial;font-size:12pt;background-color:#EEEEEE">

Thus, I'm just wondering are there actual files in dart:io or dart:html that are performing this xslt or is it chrome that is performing the xslt?

In the bottom of the dart:html library there are bunch of deprecated class files relating to xml, xpath and one for XsltProcessor.

I'm glad the xslt transformations are working in polymer components so far and was wondering where the programming is coming from.


I assume this is just because Chrome has tighter security constraints when files are loaded from a file:// url then when loaded from an http:// url. pub serve doesn't do anything to xml files except serving.

AFAIK XML support in Chrome is deprecated. I assume this is why related methods are deprecated in dart:html as well.