code_junkie

How can I do string operations in XSLT?

Nov 12th, 2011
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. <xsl:when test="StatusData/Status/Temperature > 27">
  2. <td bgcolor="#ffaaaa">
  3. <xsl:value-of select="StatusData/Status/Temperature" />
  4. </td>
  5. </xsl:when>
  6.  
  7. test="translate(StatusData/Status/Temperature, ",", ".") > 27"
  8.  
  9. test="number(translate(StatusData/Status/Temperature, ",", ".")) > 27.0"
Add Comment
Please, Sign In to add comment