Project

Profile

Help

Support #3605 » FilterEmptyNodes (1).xsl

xsl for 2nd transformation which needs to be in streaming - Ansh Sahajpal, 2018-01-09 07:21

 
<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output omit-xml-declaration="yes" indent="yes"/>
<xsl:mode streamable="yes" on-no-match="shallow-copy"/>
<xsl:strip-space elements="*"/>
<xsl:template match="*[not(@*)]">
<xsl:where-populated>
<xsl:copy>
<xsl:apply-templates select="@*"/>
<xsl:apply-templates select="node()"/>
</xsl:copy>
</xsl:where-populated>
</xsl:template>
<xsl:template match="text()[number(.) = -1]"/>
</xsl:stylesheet>
(3-3/3)