cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Padding Zeros

Former Member
0 Likes
516

Hi All,

I am using XSLT mapping.I want to get the field in the receiver side with the leading zeros.Source field: XSD :decimal and length is 10.If input is 12345, i have to get 0000012345.

Can anybody please solve the problem and guide me if u know .

View Entire Topic
Former Member
0 Likes

Hi,

There can be two ways to do this.

Eithere you do it in xslt itself or just use the Arithmetic function -


> FormatNum as shown below.

Source -


> xsltmapping -


> FormatNum -


> Target

OR

Source -


> FormatNum -


> xsltmapping -


> Target

Double click on FormatNum and enter 10 zero's in the upper input box.

Regards,

Sarvesh