Project

Profile

Help

Bug #3229 ยป json-node-output-method.xsl

Nick Nunes, 2017-05-19 23:12

 
<?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" json-node-output-method="xml"/>
<xsl:template name="main">
<xsl:variable name="test" as="element()"><foo xmlns="foo"/></xsl:variable>
<xsl:sequence select="map{'test':$test}"/>
</xsl:template>
</xsl:stylesheet>
    (1-1/1)