Project

Profile

Help

Trying to convert SVG to JSON » svg2json-saxnct2.html

arniwarp Sklinb, 2017-06-15 16:14

 
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Svg to json with svg2json.xsl using Saxon-CE</title>
<script type="text/javascript" language="javascript" src="Saxon-CE_1.1/SaxonceDebug/Saxonce.nocache.js"></script>
<script>
var onSaxonLoad = function()
{
var xml = Saxon.requestXML("test_flyout.svg");

var xsl = Saxon.requestXML("svgt2json.xsl");

var proc = Saxon.newXSLT20Processor(xsl);

proc.updateHTMLDocument(xml);
};
</script>
</head>
<body>
</body>
</html>
(1-1/3)