Click here to Skip to main content

XML / XSL

    RSS: RSS Feed

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page  Show 
  Refresh
Questionxml Pinmembervijiajai20:37 25 Sep '10  
QuestionNewDataset in XSD Pinmemberindian1436:05 20 Sep '10  
AnswerRe: I got the answer for this Pinmemberindian1437:40 20 Sep '10  
QuestionUpating xml in C# PinmemberSonar8723:56 24 Aug '10  
AnswerRe: Upating xml in C# PinmemberSeMartens5:27 25 Aug '10  
GeneralRe: Upating xml in C# PinmemberSonar8711:11 25 Aug '10  
Questionxlst - format number function PinmemberSimon_Whale5:15 4 Aug '10  
Im stuck and need help..   Big Grin | :-D
 
I using the following code to attempt to format   a decimal number into £1000.99 for example
 
<pre>
   <fo:table-cell>
      <fo:block>
         <xsl:value-of select='format-number(".//AmountPaid","#.00")' >
      </fo:block>
   </fo:table-cell>
</pre>
 
sample of the XML file is below
 
   <ClaimsHistory>
   <LossDate>26/12/2006</LossDate>
   <OR>0.0000</OR>
   <TypeOfLoss>HA</TypeOfLoss>
   <LossDescription>Fire</LossDescription>
   <Status>C&lt;/Status&gt;
   <AmountPaid>41414.4900</AmountPaid>
   </ClaimsHistory>
 

 
as you can see Im trying to convert the 41414.49 into £41414.90 but all i get is NaN and im stuck can someone please point me in the right direction?
 
Thanks
Simon
 
As barmey as a sack of badgers

AnswerRe: xlst - format number function PinmvpStuart Dootson6:43 8 Aug '10  
Questionxsl output in existing file Pinmemberlawrenceinba2:17 2 Aug '10  
AnswerRe: xsl output in existing file PinmvpStuart Dootson6:58 8 Aug '10  
Questionxml schema understanding Pinmemberjainiraj20:20 29 Jul '10  
QuestionJavaScript in XSLT Pinmemberrathishps4:32 29 Jul '10  
QuestionODX checker tool Pinmemberjainiraj3:20 28 Jul '10  
Questionhow to deserialize xsi:type attribute in C# Pinmemberjainiraj2:04 26 Jul '10  
Questionjavascript in xsl Pinmemberlawrenceinba0:53 26 Jul '10  
QuestionHow to Convert XML to Image File,thanks Pinmembertgbd197021:02 23 Jul '10  
AnswerRe: How to Convert XML to Image File,thanks PinmvpRichard MacCutchan23:14 23 Jul '10  
QuestionHot to convert a Wordml to XSL PinmemberExelioindia20:20 20 Jul '10  
QuestionMessage Removed Pinmemberpriyaahh8:14 17 Jul '10  
AnswerRe: Adding attributes to xml nodes Pinmemberdaveauld9:58 17 Jul '10  
GeneralRe: Adding attributes to xml nodes Pinmemberpriyaahh10:16 17 Jul '10  
Questionjava script code error Pinmemberahmad2520:26 16 Jul '10  
AnswerRe: java script code error PinmemberStoffy197211:22 25 Jul '10  
QuestionXSD and Elements Order Pinmemberkhaliloenit22:51 13 Jul '10  
AnswerRe: XSD and Elements Order PinmvpStuart Dootson1:34 14 Jul '10  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web02 | 2.5.120209.1 | Last Updated 10 Feb 2012
Copyright © CodeProject, 1999-2012
All Rights Reserved. Terms of Use
Layout: fixed | fluid