T4 rule generation