tmiller 2002/08/23 13:06:59
Modified: java/src/org/apache/xalan/xsltc/runtime BasisLibrary.java
Log:
conf test string134 fix
Revision Changes Path
1.48 +10 -1
xml-xalan/java/src/org/apache/xalan/xsltc/runtime/BasisLibrary.java
Index: BasisLibrary.java
===================================================================
RCS file:
/home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/runtime/BasisLibrary.java,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -r1.47 -r1.48
--- BasisLibrary.java 23 Aug 2002 19:36:09 -0000 1.47
+++ BasisLibrary.java 23 Aug 2002 20:06:59 -0000 1.48
@@ -671,7 +671,13 @@
public static boolean compare(NodeIterator left, final String rstring,
int op, int node, DOM dom) {
- return compareStrings(dom.getNodeValue(node), rstring, op, dom);
+
+ if (compareStrings(dom.getNodeValue(node), rstring, op, dom)) {
+ return true;
+ }
+ else {
+ return false;
+ }
}
public static boolean compare(Object left, Object right,
@@ -860,6 +866,9 @@
static {
NumberFormat f = NumberFormat.getInstance(Locale.getDefault());
+ // set max fraction digits so that truncation does not occur,
+ // see conf test string134
+ f.setMaximumFractionDigits(Integer.MAX_VALUE);
defaultFormatter = (f instanceof DecimalFormat) ?
(DecimalFormat) f : new DecimalFormat();
defaultFormatter.setGroupingUsed(false);
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]