if(literal.indexOf('E') != -1 || literal.indexOf('e') != -1) {
throw new DynamicError("err:FORG0001", "Illegal representation as xs:decimal: "
+ literal);
}
try {
return new XDecimal(literal, this);
} catch (NumberFormatException nfe) {
throw new DynamicError("err:FORG0001", "failed to cast as '" + SYMBOL + "': " + literal);
}
}