title: xslt 2.0 compare current date to start and end date
body: <p>I have the following output: </p>
  
  <pre><code> &lt;forms&gt;
     &lt;form id="15"&gt;
        &lt;start&gt;2013-12-09&lt;/start&gt;
        &lt;end&gt;2014-01-05&lt;/end&gt;
     &lt;/form&gt;
  &lt;/forms&gt;
  </code></pre>
  
  <p>I would like to test to see if current date is equal or greater to "start" and lesser or equal to "end" </p>
  
  <p>How would I go about testing for this?</p>
  
  <p>What I had in mind is: </p>
  
  <pre><code>&lt;xsl:variable name="fstart"&gt;
     &lt;xsl:value-of select="start" /&gt;
  &lt;/xsl:variable&gt;
  &lt;xsl:variable name="fend"&gt;
     &lt;xsl:value-of select="end" /&gt;
  &lt;/xsl:variable&gt;
  
  &lt;xsl:choose&gt;
     &lt;xsl:when test="$fstart &gt;= currentdate xor currentdate &lt;= $fend "&gt;
        &lt;!-- do stuff --&gt;
     &lt;/xsl:when&gt;
  
     &lt;xsl:otherwise&gt;
     &lt;/xsl:otherwise&gt;
  &lt;/xsl:choose&gt;
  </code></pre>