Making the xslt rule based