我用这个把它修好了。它将日期信息移动到正确的位置。
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template name="FormatDate">
<xsl:param name="DateTime" />
<xsl:variable name="mo">
<xsl:value-of select="substring($DateTime, 6, 2)" />
</xsl:variable>
<xsl:variable name="day">
<xsl:value-of select="substring($DateTime, 9, 2)" />
</xsl:variable>
<xsl:variable name="year">
<xsl:value-of select="substring($DateTime, 1, 4)" />
</xsl:variable>
<xsl:variable name="time">
<xsl:value-of select="substring($DateTime, 12, 8)" />
</xsl:variable>
<xsl:variable name="hh">
<xsl:value-of select="substring($time, 1, 2)" />
</xsl:variable>
<xsl:variable name="mm">
<xsl:value-of select="substring($time, 4, 2)" />
</xsl:variable>
<xsl:value-of select="$day" />
<xsl:value-of select="'.'" />
<xsl:value-of select="$mo" />
<xsl:value-of select="'.'" />
<xsl:value-of select="$year" />
<xsl:value-of select="' '" />
<xsl:value-of select="$hh" />
<xsl:value-of select="':'" />
<xsl:value-of select="$mm" />
</xsl:template>
</xsl:stylesheet>