|Subject:||translate() function does not remove characters or support -|
The translate() function does not work per the XPath 1.0 spec to remove characters when there is a character in the second argument string with no character at a corresponding position in the third argument string (because the second argument string is longer than the third argument string). Seefor spec. For example, the XPath expression translate("1,366.43", ",", "") produces the result "1E366.43" when it should produce "1366.43" per the spec. Also, it fails if you try to use - as a translation character. For example, the XPath expression translate("--aaa--","abc-","ABC") gives the error: Invalid range "c-E" in transliteration operator at (eval 4) line 1.