Skip to Content
avatar image
Former Member

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

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Nov 02, 2010 at 01:04 PM

    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

    Add comment
    10|10000 characters needed characters exceeded