⚲
Project
Profile
Help
Tour this page
Frequent Planio Questions
Learning Resources
Sign in
Register
Switch Planio account
Open in Planio App
Share current page
Search
:
Projects
All Projects
Help
Tour this page
Frequent Planio Questions
Learning Resources
Sign in
Register
Switch Planio account
Open in Planio App
Share current page
Saxon
»
Saxon-CE
Overview
Roadmap
Issues
Calendar
Blog
Documents
Forums
Files
Download (658 Bytes)
Trying to convert SVG to JSON
» svgt2json.xsl
import xml-to-json.xsl -
arniwarp Sklinb
, 2017-06-15 16:14
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet
version=
"2.0"
xmlns:xsl=
"http://www.w3.org/1999/XSL/Transform"
xmlns:xs=
"http://www.w3.org/2001/XMLSchema"
xmlns:json=
"http://json.org/"
>
<xsl:import
href=
"xml-to-json.xsl"
/>
<xsl:template
match=
"/"
>
<xsl:variable
name=
"vFirstPass"
>
<xsl:apply-templates/>
</xsl:variable>
<xsl:value-of
select=
"json:generate($vFirstPass)"
/>
</xsl:template>
<xsl:template
match=
"node()|@*"
>
<xsl:copy>
<xsl:apply-templates
select=
"node()|@*"
/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
« Previous
1
2
3
Next »
(2-2/3)
Loading...