I want to transform XML value to date format.
Input:
<pub-date type="date">
<day>14</day>
<month>02</month>
<year>2019</year>
</pub-date>
The output should be:
<dateformat name="Date" value="February 14, 2019"/>
Tried code :
<xsl:template name="insert-date">
<dateformat name="Date">
<xsl:attribute name="value">
<xsl:value-of select="descendant::pub-date[@type='date']/concat(month,' ',day,', ',year)"/>
</xsl:attribute>
</tps:fieldSet>
</xsl:template>
But I am getting month as 02. I want to transform it into February. How can I change my code to get the desired output.