title: Add current date as value to a tag in ISO 8601 format XSLT
body: <p>I have an xml like below:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" standalone="no"?&gt;
  &lt;properties&gt;
  &lt;entry key="user"&gt;1234&lt;/entry&gt;
  &lt;/properties&gt;
  </code></pre>
  
  <p>I want to add two new tags one contain the value of current date in ISO 8601 format and another one with the date set to current date + 10 years in ISO 8601 format and transform it into a new xml file using xslt, the output xml should be like this</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" standalone="no"?&gt;
  &lt;properties&gt;
  &lt;entry key="user"&gt;1234&lt;/entry&gt;
  &lt;entry key="doc:uploadDate"&gt;2017-07-04T22:18:08Z&lt;/entry&gt;
  &lt;entry key="doc:deleteDate"&gt;2027-07-04T22:18:08Z&lt;/entry&gt;
  &lt;/properties&gt;
  </code></pre>
  
  <p>I am using the below xslt.</p>
  
  <pre><code>&lt;xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-result-prefixes="xs" version="2.0"&gt;
  
      &lt;xsl:variable name="currentDate"&gt;
          &lt;xsl:value-of select="current-dateTime()" /&gt;
      &lt;/xsl:variable&gt;
  
      &lt;xsl:template match="entry[@key='doc:uploadDate']"&gt;
          &lt;xsl:copy&gt;
              &lt;xsl:apply-templates select="@*" /&gt;
              &lt;xsl:value-of
                  select="replace(normalize-space($currentDate),
          '^(\d{2})-(\d{2})-(\d{4})\s+(.*)','$3-$1-$2T$4Z')" /&gt;
          &lt;/xsl:copy&gt;
      &lt;/xsl:template&gt;
  
    &lt;xsl:template match="@*|node()"&gt;
        &lt;xsl:copy&gt;
            &lt;xsl:apply-templates select="@*|node()"/&gt;
        &lt;/xsl:copy&gt;
    &lt;/xsl:template&gt;   
  &lt;/xsl:transform&gt;
  </code></pre>
  
  <p>Could someone please help me with this..</p>