Кроме того, вы можете получить желаемый результат с помощью чистого XSLT, например:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:variable name="m_names">
<January/><February/><March/><April/><May/><June/><July/><August/><September/><October/><November/><December/>
</xsl:variable>
<xsl:variable name="d_names">
<Sunday/><Monday/><Tuesday/><Wednesday/><Thursday/><Friday/><Saturday/>
</xsl:variable>
<xsl:variable name="modules" select="'033614625035034025036146'"/>
<xsl:variable name="date" select="/*/*/@FileModified"/>
<xsl:variable name="day" select="substring-before($date,'/')"/>
<xsl:variable name="month" select="substring-before(substring-after($date,'/'),'/')"/>
<xsl:variable name="year" select="substring($date,7 + string-length($date) - 22,4)"/>
<xsl:variable name="calc-day" select="(($year - 1) mod 7 +
(floor(($year - 1) div 4) - 3 * floor((floor(($year - 1) div 100) + 1) div 4)) mod 7 +
substring($modules,
12 * ($year mod 4 = 0 and $year mod 100 != 0) + $month,
1) +
$day mod 7)
mod 7 + 1"/>
<xsl:template match="/">
<html>
<head></head>
<body>
<center>
<b>
<xsl:value-of select="concat(
name(document('')/*/xsl:variable[@name='d_names']/*[$calc-day]),
'     ',
$day
)"/>
<sup>
<xsl:choose>
<xsl:when test="$day = 1 or $day = 21">st</xsl:when>
<xsl:when test="$day = 2 or $day = 22">nd</xsl:when>
<xsl:when test="$day = 3 or $day = 23">rd</xsl:when>
<xsl:otherwise>th</xsl:otherwise>
</xsl:choose>
</sup>
<xsl:value-of select="concat(
'     ',
name(document('')/*/xsl:variable[@name='m_names']/*[number($month)]),
'  ',
$year,
'     ',
substring($date,12 + string-length($date) - 22,2),
' : ',
substring($date,15 + string-length($date) - 22,2),
' : ',
substring($date,18 + string-length($date) - 22,2),
' ',
substring($date,string-length($date)-1)
)"/>
</b>
<xsl:apply-templates/>
</center>
</body >
</html>
</xsl:template>
<xsl:template match="Child[1]">
<br/>
<br/>
<br/>
<b>SampleTable</b>
<br/>
<br/>
<table border="1">
<tr bgcolor="RGB(0,0,127)" >
<th width="5">
<font color="white">S.No</font>
</th>
<th width="250">
<font color="white"> Name</font>
</th>
</tr>
<xsl:apply-templates select="../Child" mode="child"/>
</table>
</xsl:template>
<xsl:template match="Child" mode="child">
<tr>
<td>
<xsl:number value="position()" format="01"/>
</td>
<td>
<xsl:value-of select="@Name"/>
</td>
</tr>
</xsl:template>
</xsl:stylesheet>
Примечание : извлечение даты может быть менее подробным, если вы используете лучший формат даты.