Hi,

try this

<xsl:value-of select="substring-before(.,',')" />,<xsl:value-of select="substring-before(substring-after(.,','),',')" />,<xsl:value-of select="substring(substring-after(substring-after(.,','),','),1,5)" />

take care

narinder

 Jasmin Mehta <[EMAIL PROTECTED]> 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



Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!

Reply via email to