| | | Copyright 2014 White Magic Software, Inc. |
| | +--> |
| | -<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> |
| | +<xsl:stylesheet version="2.0" |
| | + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
| | + xmlns:fn="http://www.w3.org/2005/xpath-functions"> |
| | |
| | <xsl:variable name="PI">3.14159265358979323846264338327950</xsl:variable> |
 |
| | <xsl:template name="abs"> |
| | <xsl:param name="x"/> |
| | - <xsl:value-of select="($x >= 0) * $x - not($x >= 0) * $x"/> |
| | + <!--xsl:value-of select="($x >= 0) * $x - not($x >= 0) * $x"/--> |
| | + <xsl:value-of select="fn:abs( $x )"/> |
| | </xsl:template> |
| | |