from = typeCheck("from", from);
count = typeCheck("count", count);
if (select != null) {
try {
RoleLocator role =
new RoleLocator(RoleLocator.INSTRUCTION, "xsl:number/select", 0);
//role.setSourceLocator(new ExpressionLocation(this));
role.setErrorCode("XTTE1000");
select = TypeChecker.staticTypeCheck(select,
SequenceType.SINGLE_NODE,
false, role, makeExpressionVisitor());
} catch (XPathException err) {
compileError(err);