} else if (XObject.CLASS_NUMBER == x.getType() || x instanceof XNumber) {
return new java.math.BigDecimal(x.str());
} else if (XObject.CLASS_UNRESOLVEDVARIABLE == x.getType()) {
return new java.math.BigDecimal(x.str());
} else if (XObject.CLASS_RTREEFRAG == x.getType()) {
return x.xstr().toString();
} else {
return x.str();
}
} catch (javax.xml.transform.TransformerException te) {
if ("org.apache.xpath.domapi.XPathStylesheetDOM3Exception".equals(te.getClass().getName())) {