W3C home > Mailing lists > Public > www-xsl-fo@w3.org > December 2001

Re: Dates in XSL:FO

From: <AndrewWatt2001@aol.com>
Date: Thu, 6 Dec 2001 11:22:18 EST
Message-ID: <134.5d52c55.2940f53a@aol.com>
To: Erich.Kilmer@mmt.bellhowell.com, www-xsl-fo@w3.org
In a message dated 06/12/01 16:16:55 GMT Standard Time, 
Erich.Kilmer@mmt.bellhowell.com writes:


> In our XML all dates are in the form YYYYMMDD. I would like to display them
> as MM/DD/YYYY. 
> I know in the past when I had looked for a way to do this I was unsuccessful
> but I thought I would try again.
> 
> Is there any XSL:FO tags to handle the formatting of dates or will there be
> any soon?
> Is there another way to do the same thing?

Erich,

The XPath substring() function should be able to do what you want, assuming 
you are transforming using XSLT.

Andrew Watt
Received on Thursday, 6 December 2001 11:22:26 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:08 GMT