title: XSLT: Set multiple variables depending on condition
body: <p>I want to assign multiple variables depending on one condition environment. I know how to do that for only one variable:</p>
  
  <pre><code>&lt;xsl:variable name="foo"&gt;
      &lt;xsl:choose&gt;
          &lt;xsl:when test="$someCondition"&gt;
              &lt;xsl:value-of select="3"/&gt;
          &lt;xsl:when&gt;
          &lt;xsl:otherwise&gt;
              &lt;xsl:value-of select="4711"/&gt;
          &lt;/xsl:otherwise&gt;
      &lt;/xsl:choose&gt;
  &lt;/xsl:variable&gt;
  </code></pre>
  
  <p>But what if I want to assign two variables depending on the same condition $someCondition?</p>
  
  <p>I don't want to write the same xsl:choose statement again, because it is somewhat lengthy and computation intensive in the real example.</p>
  
  <p>The environment in question is libxslt (xslt 1.0) with exslt extensions.</p>
  
  <p>EDIT: What i want is a behaviour similar to</p>
  
  <pre><code>if (condition) {
      foo = 1;
      bar = "Fred";
  }
  else if (...)  {
      foo = 12;
      bar = "ASDD";
  }
  (... more else ifs...)
  else {
      foo = ...;
      bar = "...";
  }
  </code></pre>