Project

Profile

Help

Support #3230 » json-escaped.xsl

Nick Nunes, 2017-05-19 23:33

 
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
exclude-result-prefixes="xs"
version="3.0">
<xsl:output method="json"/>
<xsl:template name="main">
<xsl:variable name="json" as="xs:string">{"path":"/a/path/"}</xsl:variable>
<xsl:sequence select="parse-json($json)"/>
</xsl:template>
</xsl:stylesheet>
(2-2/3)