Sch 3 para 31
An offence under section 62 or 63 of this Act (committing an offence or trespassing, with intent to commit a sexual offence) if— (a) where the offender was under 18, he is or has been sentenced in respect of the offence to imprisonment for a term of at least 12 months; (b) in any other case— (i) the intended offence was an offence against a person under 18, or (ii) the offender, in respect of the offence or finding, is or has been— (a) sentenced to a term of imprisonment, (b) detained in a hospital, or (c) made the subject of a community sentence of at least 12 months.