cancel
Showing results for 
Search instead for 
Did you mean: 

XSLT mapping requirement.. Only numbers need to be picked..!!

Former Member
0 Kudos

Hi ,

XSLT mapping requirement.

I will be getting the value as mix of numbers and alphabets like " 1343: -BIZ USA ".

I need to pick only number '1343' from the input field.

Is there any function in XSLT to pick only numbers and ignore alphabets?

Thanks

Deepthi

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi There,

The below piece of code could cater your requirement, for flltering the non digit chars from your field,

<xsl:value-of select="translate(<your field name>, translate(<your field name>, '0123456789', ''), '')"/>

This would separate the non numeric chars from your field in mapping.

Let me know this works.

Regards,

Rajesh Kumar T

Answers (0)