Is there a sign() function available in xpath? So that the following are all true:
sign(-2) == -1 sign(-1) == -1 sign( 0) == 0 sign(+1) == 1 sign(+2) == 1