Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries [Thread Prev] >Thread Next - Re: xsl Current-DateTime xsl Current-DateTimeTo: NULL Date: 7/7/2009 3:31:00 PM Guys, i'm new to style sheet programming and need your expertise.
in this stylesheet, I need to capture the current date & time... for
some reason my code stops working as soon as I add the line
<td><xsl:value-of select="current-dateTime()" />
What am I missing or doing wrong?
Here is the complete code.
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
<xsl:variable name="color" select="'red'" />
<xsl:template match="/">
<html>
<body>
<h2>Current Date</h2>
<table border="1">
<tr bgcolor="#9acd32">
<th>Color</th>
<th>Current date time</th>
</tr>
<tr>
<td><xsl:value-of select="$color" /></td>
<!-- <td><xsl:value-of select="current-dateTime()" /></td> -->
</tr>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
