Can you nest xsl:if within nested xsl:when, for example:
<xsl:choose>
<xsl:when test="param/@id = '1' " >
<xsl:if test="param/value = 'XML' ">
<xsl:when test="param/@id = '2' ">
<xsl:if test="param/value = 'HTTP' ">
<xsl:when test="param/@id = '3' ">
<xsl:if test="param/value = 'Y' ">
<xsl:call-template name="buildPayload"/>
</xsl:if>
</xsl:when>
</xsl:if>
</xsl:when>
</xsl:if>
</xsl:when>
</xsl:choose>
Can this be used, or is there away to streamline this into a more compact code?