|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Xml stylesheet
hi
i m working on xml style sheey xsl.i m very new to this. i m trying to convert a number like 1234546 to 1234.56.meant after 4 digits i want to put decimal. below is my code Code:
<xsl:value-of select="format-number(611802,'####.00')"/> i m not getting my desire output.i tried all format .but still unable to find a solution. THANKS
__________________
Nothing is Impossible bcoz IMPOSSIBLE itself says.. I M POSSIBLE........................ Be cool !!!!!!!!
|
|
#2
|
||||
|
||||
|
That's not what format-number is for - you want to look into
using the substring function.
__________________
Support requests via PM will be ignored! |
|
#3
|
||||
|
||||
|
hey chief after very long time.thanks a lot dear.but how using substring i can put decimal in the string.
|
|
#4
|
||||
|
||||
|
Did you do any research after I suggested using substring?
Use the concat function to join the 3 different parts of the string together - it's hardly rocket science... ![]() |
|
#5
|
||||
|
||||
|
okie this way
Code:
<xsl:value-of select="concat(substring($AccountCode,1,4),'.',substring($ AccountCode,5))"/> |
![]() |
| Viewing: ASP Free Forums > Other > Programming Help > Xml stylesheet |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|