I am performing XSLT transformation on some input XML which is generated from a FlatFile. I want to change the datatype of a element to "date" but without showing it in output XML.
Input XML:
<PostingDate>20141009</PostingDate>
XSLT Transformation:
<cdm:PostingDate>
<xsl:attribute name="name">
<xsl:value-of select="PostingDate"/>
</xsl:attribute>
<xsl:attribute name="type">xs:decimal</xsl:attribute>
</cdm:PostingDate>
Current Output:
<cdm:PostingDate name="20141009" type="xs:decimal"/>
Required Output:
<cdm:PostingDate>2014-10-09</cdm:PostingDate>
Note: Similarly I want to do some other transformations like to convert some XML elements into decimal and strings. Is it possible in XSLT 2.0?