Your could use the following which uses the date:date-time extention from
exslt.org. See their site for documentation and which version of processors
you need to run it (http://www.exslt.org/date/functions/time/date.time.html)
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:date="http://exslt.org/dates-and-times"
extension-element-prefixes="date">
<xsl:output method="html" indent="yes"/>
<xsl:template match="/">
<xsl:variable name="now" select="date:date-time()"/>
<xsl:text>Current date and time: </xsl:text>
<xsl:value-of select="date:month-name($now)"/>
<xsl:text> </xsl:text>
<xsl:value-of select="date:day-in-month($now)"/>
<xsl:text>, </xsl:text>
<xsl:value-of select="date:year($now)"/>
<xsl:text> </xsl:text>
<xsl:value-of select="date:hour-in-day($now)"/>
<xsl:text>:</xsl:text>
<xsl:value-of select="date:minute-in-hour($now)"/>
<xsl:text>:</xsl:text>
<xsl:value-of select="date:second-in-minute($now)"/>
</xsl:template>
</xsl:stylesheet>
On 5/28/03 5:58 AM, "Molnár Ágnes" <agi(_at_)harpia(_dot_)homeip(_dot_)net>
wrote:
Hello again,
Can I insert to a HTML code the actual date (ex. 28-05-2003) from XSL?
Thanks,
Agnes
Molnár Ágnes
E-mail: agi(_at_)harpia(_dot_)homeip(_dot_)net
Tel.: +36-20-212-8493
Icq: 167290967
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list