// for(long i = ((IntegerValue)valueStart.convertTo(Type.INTEGER)).getLong();
// i <= ((IntegerValue)valueEnd.convertTo(Type.INTEGER)).getLong(); i++) {
// result.add(new IntegerValue(i));
// }
result = new RangeSequence((IntegerValue)valueStart.convertTo(Type.INTEGER),
(IntegerValue)valueEnd.convertTo(Type.INTEGER));
} else {
//Quite unusual test : we accept integers but no other *typed* type
if (!Type.subTypeOf(startSeq.itemAt(0).atomize().getType(), Type.INTEGER) &&
!Type.subTypeOf(startSeq.itemAt(0).atomize().getType(), Type.UNTYPED_ATOMIC))
{throw new XPathException(this, ErrorCodes.FORG0006, "Required type is " +