InterformNG2 includes the special built-in XPath function, ng:minimum.
This function returns the smallest value of two numeric arguments.
The function only accepts two numeric arguments - no more and no less.
Examples:
ng:minimum(-14,2) returns: -14
ng:minimum(14,2)returns: 2