}
return new LiteralImpl(Double.toString(min), XMLSchema.DOUBLE);
}
else if (operator instanceof Max) {
Max maxOp = (Max)operator;
Set<Value> values = makeValueSet(strategy, maxOp.getArg(), bindingSets);
// FIXME: handle case where 'values' is empty
double max = Double.NEGATIVE_INFINITY;
for (Value v : values) {
if (v instanceof Literal) {