Wrapping element in choose construction. How to improve?
- by Kalinin
Is there any way to optimize this code.
<xsl:when test="val1 = val2">
<xsl:apply-templates select="node"/>
</xsl:when>
<xsl:otherwise>
<div>
<xsl:apply-templates select="node"/>
</div>
</xsl:otherwise>
I do not like having to write twice the same <xsl:apply-templates select="node"/>.