Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. frodosfoot

    Comparing values within and bewteen files.

    Yes, it seems to be giving me the real values one would expect to see if the math was done in the head or on a calculator. For the above example it gives 119.30. And for 1754.22 - 1873.39 it gives -119.17. (I haven't used a full data set yet though). I'll try the alternative you mentioned too...
  2. frodosfoot

    Comparing values within and bewteen files.

    Sorry for bothering you guys with my simple question recently - I've been thrown in at the deep end, and have had to muddle through at speed from a standing start. I think I've finished now - thanks for the time and the speedy help that I received. The "project" is coming along nicely now. For...
  3. frodosfoot

    Comparing values within and bewteen files.

    Yes, I should have realised this - I had something similar only a day or two ago. From the example above, I find it rather odd that the xslt processor on my system is so shockingly poor at arithmetic. When calculating the difference between <newrank> and <oldrank> it produces wrong answers...
  4. frodosfoot

    Comparing values within and bewteen files.

    After some experimentaion I have managed to come up with the following: <xsl:for-each select="ScotlandRanks/entry"> <xsl:sort select="newrank" data-type="number" order="descending"/> <tr> <td><xsl:number value="position()" format="1. "/></td> <td><xsl:value-of select="team"/></td>...
  5. frodosfoot

    Comparing values within and bewteen files.

    <rankings> <entry> <club>example1</club> <oldrank>2000.34</oldrank> <newrank>1973.29</newrank> </entry> <entry> <club>example2</club> <oldrank>2104.68</oldrank> <newrank>2156.36</newrank> </entry> </rankings> This simple xml file is curently transformed by an equally simple...
  6. frodosfoot

    xslt - get value from second xml file and replace

    Nice one. Thanks for your time. DAK
  7. frodosfoot

    xslt - get value from second xml file and replace

    Hi, This, I'm sure, is a very simple problem. I'm trying to use the xslt document() function to add a piece of information from a second xml file. The main xml has a list of football teams, wins, losses, goals scored etc. main xml: ...etc ...> <league> <teams> <team> <teamID>4573</teamID>...
  8. frodosfoot

    XSLT element ID and images

    Yeah, that's quite impressive ... and simple too. Does the job perfectly. Thanks, DAK
  9. frodosfoot

    XSLT element ID and images

    In my xml, certain elements have an id. For example: <countryfrom id="21">Brasil</countryfrom> In my xslt I'm using <xsl:value-of select="countryfrom"/> to get the country name into the relevant cell of a table. However, what I'd like to do is to show the country flag in addition to its...

Part and Inventory Search

Back
Top