Subject: Re: [xsl] Actual Date From: Alan Gardner <scipiomedia@xxxxxxxxxxx> Date: Wed, 28 May 2003 08:53:10 -0600 |
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@xxxxxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxxxx >> Tel.: +36-20-212-8493 >> Icq: 167290967 > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Actual Date, Molnár Ágnes | Thread | Re: [xsl] Actual Date, Stephane Bortzmeyer |
[xsl] Grouping the same set by mult, Erika Marlow | Date | Re: [xsl] Grouping the same set by , G. Ken Holman |
Month |