535. Offences for which offender may be sentenced.

The court may sentence an offender only in respect of an offence of which he has been convicted, or which he has admitted by pleading guilty or by asking for it to be taken into consideration