title: SimpleDateFormat and Date:new how can I simply report a date in the future? XSLT, XML1.0, Java
body: <p>I need to add 90 days to the current date populated in the 2nd half of this code. I've attached the resulting XML below (using xml1.0 and xalan 2.7.1), it looks great i just need Licensing_End_Window to read 90days post todays date and can't figure it out for the life of me. Note this is just a snippet of the XSLT and resulting XML.</p>
  
  <pre><code>                    &lt;xsl:element name="App_Data"&gt;
                      &lt;xsl:attribute name="App"&gt;MOD&lt;/xsl:attribute&gt; 
                      &lt;xsl:attribute name="Name"&gt;Licensing_Window_Start&lt;/xsl:attribute&gt; 
                      &lt;xsl:attribute name="Value"&gt;
                          &lt;xsl:variable name="s" select="SimpleDateFormat:new('MM-dd-yyyy')"/&gt;
                          &lt;xsl:variable name="Date" select="Date:new()"/&gt;
                          &lt;xsl:choose&gt;
                              &lt;xsl:when test="add:FlightStart"&gt;&lt;xsl:value-of select="substring(add:FlightStart,1,10)"/&gt;&lt;/xsl:when&gt;
                              &lt;xsl:otherwise&gt;
                                  &lt;xsl:value-of select="SimpleDateFormat:format($s,$Date)" /&gt;
                              &lt;/xsl:otherwise&gt;
                          &lt;/xsl:choose&gt;
                      &lt;/xsl:attribute&gt;
                  &lt;/xsl:element&gt;
                  &lt;xsl:element name="App_Data"&gt;
                      &lt;xsl:attribute name="App"&gt;MOD&lt;/xsl:attribute&gt; 
                      &lt;xsl:attribute name="Name"&gt;Licensing_Window_End&lt;/xsl:attribute&gt; 
                      &lt;xsl:attribute name="Value"&gt;
                          &lt;xsl:variable name="s" select="SimpleDateFormat:new('MM-dd-yyyy')"/&gt;
                          &lt;xsl:variable name="Date" select="Date:new()"/&gt;
                          &lt;xsl:choose&gt;
                              &lt;xsl:when test="add:FlightEnd"&gt;&lt;xsl:value-of select="substring(add:FlightEnd,1,10)"/&gt;&lt;/xsl:when&gt;
                              &lt;xsl:otherwise&gt;
                                  &lt;xsl:value-of select="SimpleDateFormat:format($s,$Date)"/&gt;
                              &lt;/xsl:otherwise&gt;
                          &lt;/xsl:choose&gt;
                      &lt;/xsl:attribute&gt;
                  &lt;/xsl:element&gt;
  </code></pre>
  
  <p>Resulting XML</p>
  
  <pre><code> &lt;Name="Licensing_Window_Start" Value="12-10-2014"/&gt;&lt;App_Data App="MOD" Name="Licensing_Window_End" Value="12-10-2014"/&gt;&lt;App_Data App="MOD"
  </code></pre>