|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Actual Date
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








