title: In an xsl choose statement how can I test for the value of a js variable
body: <p>I'm working in SharePoint with an xsl file and have an xsl choose statement which i wish to help conditionally display records from my xml. in the code below I test <code>DAS_ID</code> to be equal to <code>*someValue*</code></p>
  
  <p>This works if I hardcode a value in such as <code>&lt;xsl:when test="DAS_ID = 5 "&gt;</code> but wish to compare the .  What I'm trying to do is replace <code>*value*</code> with a javascript variable...or at least the current value of that js variable.  Is this possible? any suggestions?</p>
  
  <pre><code> &lt;xsl:choose&gt;
    &lt;xsl:when test="DAS_ID = *someValue* "&gt;
     &lt;td bgcolor="#ff00ff"&gt;
     &lt;xsl:value-of select="HTML_ID"/&gt;
     &lt;/td&gt;
    &lt;/xsl:when&gt;
  &lt;xsl:otherwise&gt;
    &lt;td&gt;not matched&lt;/td&gt;
    &lt;/xsl:otherwise&gt;
  &lt;/xsl:choose&gt;
  </code></pre>
  
  <p>Much appreciated,</p>