ZVON > References > XSLT Reference
Go to standard

XPath operator: number number - number

Standard excerpt:

The - operator performs subtraction.

NOTE: Since XML allows - in names, the - operator typically needs to be preceded by whitespace. For example, foo-bar evaluates to a node-set containing the child elements named foo-bar; foo - bar evaluates to the difference of the result of converting the string-value of the first foo child element to a number and the result of converting the string-value of the first bar child to a number.

Precedence:

Operators with greater precedence: *(multiplication) |(union) mod div -(unary minus)
Operators with equal precedence: +
Operators with less precedence: = != <= < >= > or and

Interactive xlab: [xsl:value-of] [xsl:template]