# HG changeset patch # User aefimov # Date 1374664889 -14400 # Node ID d186d96b9af89355e1331e90ff34c61bb46a5c09 # Parent 1836b22ca25ede693fc82818291c935d30dc341b 8015978: Incorrect transformation of XPath expression "string(-0)" Reviewed-by: darcy, joehw diff -r 1836b22ca25e -r d186d96b9af8 src/com/sun/org/apache/xalan/internal/xsltc/runtime/BasisLibrary.java --- a/src/com/sun/org/apache/xalan/internal/xsltc/runtime/BasisLibrary.java Wed Oct 16 17:09:25 2013 +0100 +++ b/src/com/sun/org/apache/xalan/internal/xsltc/runtime/BasisLibrary.java Wed Jul 24 15:21:29 2013 +0400 @@ -955,6 +955,9 @@ if (Double.isNaN(d) || Double.isInfinite(d)) return(Double.toString(d)); + //Convert -0.0 to +0.0 other values remains the same + d = d + 0.0; + // Use the XPath formatter to ignore locales StringBuffer result = threadLocalStringBuffer.get(); result.setLength(0);