Re: [xsl] Displaying dates.

Subject: Re: [xsl] Displaying dates.
From: Ronald <ronald@xxxxxxxxxxx>
Date: Wed, 11 Apr 2001 11:35:34 +0100
At 03:02 PM 4/10/01 -0700, you wrote:

I am new to XSLT and really looking forward to diving into XSLT development
I have the following piece of XSL file. Can anyone tell me how I can display
date on a HTML output.
What I am looking for is an XML input sample to make use of this XSLT file.

<?xml version="1.0" encoding="iso-8859-1"?> <xsl:stylesheet xmlns:xsl=""; version="1.0" > <xsl:variable name="date" select="Date:to-string(Date:new())" xmlns:Date=""/>


You've got the right namespace if you're gonna use XT.

With XT comes a package of samples. One of them is calles date.xsl I believe.
That one more or less says something like:


<xsl:value-of select="date:toString(date:new())"/>

Just look at that date.xsl file, and you'll understand. :-)


XSL-List info and archive:

Current Thread