[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Displaying dates.

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

Hi,
I am new to XSLT and really looking forward to diving into XSLT development
world.
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="http://www.w3.org/1999/XSL/Transform" version="1.0" > <xsl:variable name="date" select="Date:to-string(Date:new())" xmlns:Date="http://www.jclark.com/xt/java/java.util.Date"/>

</xsl:stylesheet>

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:

xmlns:date="http://www.jclark.com/xt/java/java.util.Date"

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


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


Ronald


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.