} else if (XMLSchema.STRING.equals(datatype)) {
return l.getLabel();
} else if (XMLSchema.INTEGER.equals(datatype)) {
return l.integerValue();
} else if (XMLSchema.INT.equals(datatype)) {
return l.intValue();
} else if (XMLSchema.ANYURI.equals(datatype)) {
try {
return new java.net.URI(l.getLabel());
} catch (URISyntaxException e) {
throw new ScriptException(e);