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