on 11-02-2010 5:20 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.