import fixes for RTL+elementary math; source: https://code.google.com/p/web-xslt/