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...
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...
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...
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>...
<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...
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>...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.