Customising nxml hooks