Clay,

The links you have mentioned has excellent source for date time
functions. But I am receiving a date in XML file that has not matching
format according to XML Schema Part 2: Datatypes. So I can not use that
function.

So I am now looking for some string function only that can give me the
format I want.

Can you help on this? Its not immediate requirement, but it would be
great If I can figure out something in couple hours.

Thanks for yr time
Jasmin

-----Original Message-----
From: Clay Leeds [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 27, 2003 11:17 AM
To: [EMAIL PROTECTED]
Subject: Re: xsl question about substring/index

Jasmin,

Here's a page with some "date" extensions to XSLT:
http://www.exslt.org/date

Here's a differen extension worth checking out:
http://xsltsl.sourceforge.net/date-time.html

I'm sure there's an XSL template out there somewhere that does exactly 
what you're looking for, but I couldn't find it in 5 mins of looking... 
sorry.

Jasmin Mehta wrote:
> Hi,
> 
> Can anybody please tell me how to get indexes of specific strings?
> 
> For example, I have a long date tag in XML
> 
> <submitdate>Monday, March 24, 2003 4:02:03 PM EST</submitdate>
> 
> And I just want to display 'Monday, March 24, 2003' in my PDF file
using 
> xsl-fo.
> 
> It I have to substring it in Java, I would have written
> 
> String targetStr =
submitdate.substring(0,submitdate.lastIndexOf(',')+4);
> 
> How can I get similar function xsl? I saw substring-after() and 
> substring-after() function on some site. But it doesn't seems to give
me 
> the result I want.
> 
> Thanks
> 
> Jasmin


-- 
Clay Leeds - [EMAIL PROTECTED]
Web Developer - Medata, Inc. - http://www.medata.com
PGP Public Key: https://mail.medata.com/pgp/cleeds.asc


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to