making the xslt rule based