Project

Profile

Help

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

arniwarp Sklinb, 2017-06-15 16:14

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

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

14
    var proc = Saxon.newXSLT20Processor(xsl);
15

16
    proc.updateHTMLDocument(xml);
17
};
18
</script>
19
</head>
20
<body>
21
</body>
22
</html>
(1-1/3)