}
}
public Value convertSimpleTypeToSaxon(QName type, String value) {
int fp = _config.getNamePool().allocate("", type.getNamespaceURI(), type.getLocalPart());
SchemaType type2 = _config.getSchemaType(fp);
if (type2 == null || !type2.isAtomicType()) {
__log.warn("Can't find simple type " + type + " value " + value + " result: " + null);
return null;
} else {
try {
//TODO this is an ugly hack to remove decimal points from an int
if (type2.equals(BuiltInAtomicType.INT)) {
if (value.indexOf(".") != -1) {
value = value.substring(0, value.indexOf("."));
}
}