<p>I have the following code block in my xslt;</p>

<pre><code>      &lt;xsl:when test="StatusData/Status/Temperature &gt; 27"&gt;
        &lt;td bgcolor="#ffaaaa"&gt;              
          &lt;xsl:value-of select="StatusData/Status/Temperature" /&gt;              
        &lt;/td&gt;
      &lt;/xsl:when&gt;
</code></pre>

<p>But as you might guess when the value is 34,5 instead of 34.5 it is recognised as a string which makes integer comparison not possible. I thought replacing , with . would be solution that needs a char replace. My question is how I can do this
or
It would be great to know more about string operations in XSLT...</p>

There is a
```
translate()
```
function in XPath:
```
```
test="translate(StatusData/Status/Temperature, ",", ".") > 27"
```
```
Additionally you should make use of the number function, which converts it's argument to a number (or NaN, if that fails):
```
```
test="number(translate(StatusData/Status/Temperature, ",", ".")) > 27.0"
```
```
See the
documentation for
```
translate()
```
and the
documentation for
```
number()
```
at w3.org.