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]



Reply via email to