on 04-21-2008 11:06 AM
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 .
Hi,
you can use format-number function in this case...
<xsl:template match="/">
<number>
<xsl:value-of select="format-number('5465','0000000000')"/>
</number>
</xsl:template>
Regards,
Abhijeet
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.