Project

Profile

Help

Bug #6221 » bugIdentity.xsl

The transformation - Dimitre Novatchev, 2023-10-11 22:43

 
<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xsl:output method="text" omit-xml-declaration="yes" indent="yes"/>
<xsl:variable name="vResult" as="map(*)">
<xsl:evaluate xpath="string(/*/text())"/>
</xsl:variable>
<xsl:template match="/" name="identity">
<xsl:sequence select=
"serialize($vResult, map{'method':'json'})"/>
</xsl:template>
</xsl:stylesheet>
(4-4/5)