schema: filter for valid schema nodes while constructing schemas