</xsl:otherwise>
</xsl:choose>
- <xsl:text>></xsl:text>
- <xsl:apply-templates select="node()" mode="copy"/>
- <xsl:text></</xsl:text>
- <xsl:value-of select="name(.)"/>
- <xsl:text>></xsl:text>
+ <xsl:choose>
+ <xsl:when test="node()">
+ <xsl:text>></xsl:text>
+ <xsl:apply-templates select="node()" mode="copy"/>
+ <xsl:text></</xsl:text>
+ <xsl:value-of select="name(.)"/>
+ <xsl:text>></xsl:text>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:text>/></xsl:text>
+ </xsl:otherwise>
+ </xsl:choose>
</xsl:template>
<xsl:template match="src:passthrough" mode="copy" priority="3">