xsl中有没有把字符串转换成日期格式的函数(在线)

如题!
---------------------------------------------------------------

Example

1<xmlsamples xml:space="preserve" xmlns:dt="urn:schemas-microsoft-com:datatypes">
2<filedetails>
3<author>Robert Brown</author>
4<date dt:dt="datetime">2000-02-16T15:56:00</date>
5</filedetails>
6</xmlsamples>

File Name: Sample.xsl

 1<xsl:stylesheet xmlns:dt="urn:schemas-microsoft-com:datatypes" xmlns:xsl="http://www.w3.org/TR/WD-xsl">
 2<xsl:template match="/">
 3<html>
 4<head>
 5</head>
 6<body>
 7<xsl:for-each select="XMLSamples/FileDetails/Date">   
 8Date Edited :   
 9<xsl:eval>   
10formatDate(this.nodeTypedValue, "MMM dd, yyyy");   
11</xsl:eval>
12</xsl:for-each>
13</body>
14</html>
15</xsl:template>
16</xsl:stylesheet>
Published At
Categories with Web编程
comments powered by Disqus