Over a million developers have joined DZone.
Silver Partner

MathOps: Simple Math Operations In Xslt

· Java Zone

The Java Zone is brought to you in partnership with JetBrains.  Learn about instant and clever code completion, on-the-fly code analysis and reliable refactoring tools with IntelliJ IDEA.

cfMathOps.xml:





  4
  3.2
  11



cfMathOps.xsl







math operations from xslt

A. 4 + 3.2 = B. 3.2 - 4 = C. 4 * 3.2 = D. 11/3.2 = E. 4 + 3.2 * 11 = F. (4 + 3.2) * 11 = G. 11 mod 4 = H. 4 + 3.2 + 11 = I. floor(3.2) = J. ceiling(3.2) = K. round(3.2) = L. 11 + count(*) = M. 11 + "hello" = N. 3.2 + string-length("3.2") =

The Java Zone is brought to you in partnership with JetBrains.  Learn about instant and clever code completion, on-the-fly code analysis and reliable refactoring tools with IntelliJ IDEA.

Topics:
math

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}