<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0" <br>
xmlns="urn:schemas-microsoft-com:office:spreadsheet"
xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
xmlns:date="http://exslt.org/dates-and-times"
xmlns:str="http://exslt.org/strings"
exclude-result-prefixes="date str" >
 
<xsl:output indent="yes">
<xsl:template
match="@*|*|processing-instruction()|comment()|text()">
<!-- <Data
ss:Type="DateTime">2003-05-28T00:00:00.000</Data>
date:add('.', 'P4MT480H') -->
<xsl:choose>
<xsl:when
test="ss:Data[@ss:Type='DateTime']">
<Cell>
<Data
ss:Type="DateTime"><xsl:value-of
select="str:replace(date:add(substring-before(.,'.'),
'P4MT480H'),'.0000000-07:00' ,'.000'
)" ></Data>
</Cell>
</xsl:when>
<xsl:otherwise>
<xsl:copy>
<xsl:apply-templates
select="*|@*|text()|processing-instruction()|comment()">
</xsl:copy>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>