The position of the fan (and isolator) is subject to the same Zone requirements of all bathroom electrical appliances. These are summarised at
http://www.diydata.com/electrics/bathroom_electrics/bathroom_electrics.htm

If the Zones / IP rating cannot be complied with, low-voltage fans (some incorporating a light) are available, or in-line fans can be used in ductwork outside the bathroom.