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

Reply via email to