AnsweredAssumed Answered

Import SVG as XML using XSLT

Question asked by tmlutas on Jun 15, 2017
Latest reply on Jun 17, 2017 by beverly

I am trying to figure out how to import complex SVG graphics (up to several thousand paths in a particular file) and programmatically change elements (such as fill but not necessarily limited to that) based on calculations inside Filemaker. I'm trying to figure out how to parse an SVG file so that this is relatively easy. I will be modifying potentially a great many svg files this way.


Is importing SVG as XML using multiple custom XSLT files a viable way to proceed? Or is it better just to load the whole thing and parse it out via script to the various records, do the changes, and then reassemble the SVG and export it?


I'm not finding much discussion that's on point and if somebody's already done this I certainly don't want to reinvent the wheel.