Project

Profile

Help

Support #3230 » json-unescaped.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="text"/>
<xsl:template name="main">
<xsl:variable name="json" as="xs:string">{"path":"/a/path/"}</xsl:variable>
<xsl:sequence select="serialize-json(parse-json($json),map{'escape':false()})"/>
</xsl:template>
</xsl:stylesheet>
(1-1/3)